A pattern searching function that uses Bad Character Heuristic of Boyer Moore Algorithm
void search ( char * txt , char * pat ) { int m = strlen ( pat ) ; int n = strlen ( txt ) ; int badchar [ NO_OF_CHARS ] ;