shithub: scc

ref: 3cce2df50df508019c1e511625f13832965ef28a
dir: /libc/src/strlen.c/

View raw version
/* See LICENSE file for copyright and license details. */

#include <string.h>

size_t
strlen(const char *s)
{
	size_t n = 0;

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