ack/lang/cem/libcc/gen/strlen.c

11 lines
124 B
C
Raw Normal View History

1987-01-27 15:57:55 +00:00
int strlen(s)
char *s;
{
/* Return length of s. */
char *original = s;
while (*s != 0) s++;
return(s - original);
}