summaryrefslogtreecommitdiff
path: root/kernel/libc/string/strlen.c
blob: 4346383990629fd50a08c45939c70c93f38cb5c9 (plain)
1
2
3
4
5
6
7
8
#include "../include/string.h"

unsigned long strlen(const char *s)
{
	const char * tmp = s;
	for(;*tmp++;);
	return (tmp - s)-1;
}