2016-12-05 22:15:40 +01:00
|
|
|
int main () {
|
|
|
|
|
char a[] = "thisisatest";
|
|
|
|
|
char b[] = "testing123testing";
|
|
|
|
|
int n = sizeof a - 1;
|
|
|
|
|
int m = sizeof b - 1;
|
|
|
|
|
char *s = NULL;
|
|
|
|
|
int t = lcs(a, n, b, m, &s);
|
|
|
|
|
printf("%.*s\n", t, s); // tsitest
|
2013-04-10 21:29:02 -07:00
|
|
|
return 0;
|
|
|
|
|
}
|