int main(int argc, char *agv[]) { char *txt = "ABABDABACDABABCABAB"; char *pat = "ABABCABAB"; printf("Main before kmpsearch \n"); kmpsearch(pat,txt); exit(0); }
main() { char *t="naxananananananax"; char *p="nax"; kmpsearch(t,p); }
int main() { char *pattern="ABABCABAB"; char *text="ABABDABACDABABCABAB"; kmpsearch(pattern,text); }