aboutsummaryrefslogtreecommitdiff
path: root/string.c
blob: 14bee28eecb29bcea9787ff1ca460731c89565e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef STRING_C
#define STRING_C

#include <toast.h>

uint64_t strlen(char *string)
{
	uint64_t l = 0;
	while (string[l] != 0)
		l++;
	return l;
}

#endif