ack/lang/cem/libcc/gen/strlen.c
1987-01-27 15:57:55 +00:00

11 lines
124 B
C

int strlen(s)
char *s;
{
/* Return length of s. */
char *original = s;
while (*s != 0) s++;
return(s - original);
}