shithub: scc

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