shithub: scc

ref: b44a95b8fbe1a524074dfcb96ee5efb89c9a1c9a
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)
{
	const char *t;

	for (t = s; *t; ++t)
		/* nothing */;
	return t - s;
}