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