Syncboot/libc/string/strlen.c
2019-04-01 02:18:48 +01:00

8 lines
118 B
C
Executable File

#include <string.h>
size_t strlen(const char* str) {
size_t len = 0;
while (str[len])
len++
return len;
}