FENIX_libc/string/strlen.c
2020-02-11 23:23:27 -06:00

9 lines
132 B
C
Executable file

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