4.1cBSD/usr/src/lib/libc/gen/strlen.c

Compare this file to the similar file:
Show the results in this format:

/* @(#)strlen.c	4.1 (Berkeley) 12/21/80 */
/*
 * Returns the number of
 * non-NULL bytes in string argument.
 */

strlen(s)
register char *s;
{
	register n;

	n = 0;
	while (*s++)
		n++;
	return(n);
}