// Driver program to test above function int main() { char *txt = "ABABDABACDABABCABAB"; char *pat = "ABABCABAB"; KMPSearch(pat, txt); return 0; }
// Driver program to test above function int main() { char txt[] = "ABABDABACDABABCABAB"; char pat[] = "ABABCABAB"; KMPSearch(pat, txt); return 0; }
int main() { char *string = ""; char *pattern = ""; printf("match result = %d\n", KMPSearch(string, pattern)); return 0; }