ack/lang/cem/libcc/gen/strcmp.c
1989-02-22 16:16:11 +00:00

11 lines
131 B
C

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