int my_strcmp(char *s1, char *s2)
{
assert(s1 != NULL && s2 != NULL);
char *p = s1;
char *q = s2;
while (*p == *q && *p != '\0')
{
p++;
q++;
}
return (*p-*q);
}
my_strcmp
最新推荐文章于 2024-06-11 12:35:59 发布