shithub: scc

ref: 63c625229ddae2be9785f8c9a0e4e5c5d2a6cb6c
dir: /libc/src/strlen.c/

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

#include <string.h>
#undef strlen

size_t
strlen(const char *s)
{
	const char *t;

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