#include <stdio.h>
char *fun (char *s, char *t)
{
int i=0,j=0;
while(*s++)i++;
while(*t++)j++;
if(i-j>=0)return s-i-1;
else return t-j-1;
}
void main()
{
char a[20],b[20];
void NONO ();
printf("请输入第一个字符串:");
gets(a);
printf("请输入第二个字符串:");
gets(b);
printf("%s\n",fun (a, b));
NONO ();
}
void NONO ()
{
FILE *fp, *wf ;
int i ;
char a[20], b[20] ;
fp = fopen("in.dat","r");
wf = fopen("out.dat","w");
fclose(fp);
fclose(wf);
}