/* primer78.c - Boyer-Moor-ov algoritam*/ char *search( char *pat, char *text, int n ) { int i, j, k, m, skip[MAXCHAR]; m = strlen(pat); if( m==0 ) return( text ); for( k=0; k=0 && text[i] == pat[j]; j-- ) i--; if( j == (-1) ) return( text+i+1 ); } return( NULL ); }