20 lines
295 B
C
20 lines
295 B
C
#if !defined(lint) && defined(SCCSIDS)
|
|
static char sccsid[] = "@(#)strlen.c 1.1 92/07/30 SMI"; /* from UCB 4.1 80/12/21 */
|
|
#endif
|
|
|
|
/*
|
|
* Returns the number of
|
|
* non-NULL bytes in string argument.
|
|
*/
|
|
|
|
strlen(s)
|
|
register char *s;
|
|
{
|
|
register int n;
|
|
|
|
n = 0;
|
|
while (*s++)
|
|
n++;
|
|
return (n);
|
|
}
|