コード例 #1
0
ファイル: kmpandlps.cpp プロジェクト: dweep123/practice
// Driver program to test above function
int main()
{
	char *txt = "ABABDABACDABABCABAB";
	char *pat = "ABABCABAB";
	KMPSearch(pat, txt);
	return 0;
}
コード例 #2
0
// Driver program to test above function
int main()
{
   char txt[] = "ABABDABACDABABCABAB";
   char pat[] = "ABABCABAB";
   KMPSearch(pat, txt);
   return 0;
}
コード例 #3
0
ファイル: KMPSearch.c プロジェクト: weekend27/Algorithms
int main() {
  char *string = "";
  char *pattern = "";
  printf("match result = %d\n", KMPSearch(string, pattern));
  return 0;
}