#include <string.h>
#include <stdio.h>
int mystrmp(char *s, char *t);
void main()
{
char c1[]="1234560";
char c2[]="123456";
int i=strcmp(c1,c2);
printf("cmp = %d/n", i);
i=mystrmp(c1,c2);
printf("mystrmp = %d/n", i);
}
int mystrmp(char *s, char *t)
{
while(*s != '/0' || *t !='/0' )
{
if (*s > *t )
{
return 1;
}
else if(*s < *t)
{
return -1;
}
s++;
t++;
}
return 0;
}