2.9BSD/usr/src/lib/c/gen/strlen.c

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

/*	@(#)strlen.c	2.1	SCCS id keyword	*/
/*
 * Returns the number of
 * non-NULL bytes in string argument.
 */

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

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