search.c
/// Boyer-Moore-Horspool algorithm (for C strings)
Boyer-Moore-Horspool algorithm (for C strings)
Boyer - Moore - Horspool algorithm ( for C strings )
const char* searchBoyerMooreHorspoolString(const char* haystack, const char* needle)
{
  if (!haystack || !needle)
    return NULL;
  return searchBoyerMooreHorspool(haystack, strlen(haystack), needle, strlen(needle));
}
const char * searchBoyerMooreHorspoolString ( const char * haystack , const char * needle ) { if ( ! haystack || ! needle ) return NULL ; return searchBoyerMooreHorspool ( haystack , strlen ( haystack ) , needle , strlen ( needle ) ) ; }
Boyer-Moore-Horspool algorithm (for C strings)
Boyer - Moore - Horspool algorithm ( for C strings )
// detect invalid input // call routine for non-text data