#include
int my_strcmp(char *,char *);
int main()
{
int p;
char a[100]="you know,i miss you very much ";
char b[100]="but sorry,i don't love you any more";
p=my_strcmp(a,b);
printf("%d\n",p);
return 0;
}
int my_srtcmp(char *s,char *t)
{
int result;
for(;*s&&*t&&*s==*t;s++,t++)
if(*s==*t)
result=0;
if(*s<*t)
result=-1;
if(*s>*t)
result=1;
return result;
}
int my_srtcmp(char *s,char *t)
改成
int my_strcmp(char *s,char *t)