shithub: scc

ref: d0a1eae3c5e2d9b4fd2dd6d8727d882f24d4a4ef
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;
}