shithub: scc

ref: 8b178526d17c09010b94b2c6655c0c98648a2f68
dir: /lib/c/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;
}