ack/lang/cem/libcc/gen/strcmp.c
1994-06-24 14:02:31 +00:00

11 lines
127 B
C

/* $Id$ */
int
strcmp(s, t)
register char *s, *t;
{
while (*s == *t++)
if (*s++ == '\0')
return 0;
return *s - *--t;
}