summaryrefslogtreecommitdiffstats
path: root/usr/klibc/strlen.c
blob: 86526a52286f9fcc4903a17300adef04ede101a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * strlen()
 */

#include <string.h>

size_t strlen(const char *s)
{
	const char *ss = s;
	while (*ss)
		ss++;
	return ss - s;
}