summaryrefslogtreecommitdiffstats
path: root/lib16/strlen.c
blob: 7d6dd158897e1430814682e11dbd928eec9f539c (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <string.h>

int strlen(const char *c)
{
	const char *c0 = c;

	while (*c)
		c++;

	return c - c0;
}