int str_cmp1(const char *s, const char *t)
{
while (*s == *t && *s != '\0')
++s, ++t;
return *s - *t;
}
int str_cmp2(const char *s, const char *t)
{
int i;
for (i = 0; s[i] == t[i] && s[i] != '\0'; ++i)
;
return s[i] - t[i];
}
int str_cmp1(const char *s, const char *t)
{
while (*s == *t++ && *s != '\0') ++s;
return *s - *t;
}