摘要:
#include
#include
int commStr(char *str1,char *str2,int *lenpt)
{
int len1,len2,ln,count,i,k,p;
char *st;
if ((len1=strlen(str1))0;ln--) {
for (k=0;k+ln=len2;k++) {
for (p=0;p+ln=len1;p++) {
for (i=0;iln;i++)
if (str2[k+i]!=str1[p+i]) break;
if (i==ln)
count++;
}
}
if (count) break;
}
*lenpt =ln;
re
阅读全文