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