>>613
これでどう?

int mystrcmp(const char *s1, const char *s2)
{
int c, d;

while (!(c = *s1++ - (d = *s2++)) && d)
;
return c;
}