aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strlen.c
blob: 520ab9297f8ef0c17c92c0ed8f1226a5cd74be6b (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <lib/string.h>

u32 strlen(const char *str)
{
	u32 len = 0;
	while (str[len])
		len++;
	return len;
}