12 lines
139 B
C
12 lines
139 B
C
/* $Header$ */
|
|
int strlen(s)
|
|
char *s;
|
|
{
|
|
/* Return length of s. */
|
|
|
|
char *original = s;
|
|
|
|
while (*s != 0) s++;
|
|
return(s - original);
|
|
}
|