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

12 lines
104 B
C
Raw Normal View History

1987-03-31 10:45:53 +00:00
/* $Header$ */
1989-02-22 16:16:11 +00:00
int
strlen(s)
char *s;
1987-01-27 15:57:55 +00:00
{
1989-02-22 16:16:11 +00:00
register char *b = s;
1987-01-27 15:57:55 +00:00
1989-02-22 16:16:11 +00:00
while (*b++)
;
return b - s - 1;
1987-01-27 15:57:55 +00:00
}