aboutsummaryrefslogtreecommitdiff
path: root/src/lib/string.c
blob: 1b7a2b87f2428f58fa63c16e0e13a9d0d25a35ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
// MIT License, Copyright (c) 2020 Marvin Borner

#include <def.h>

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