Sync/libc/string/strlen.c
2019-04-03 17:46:58 -04:00

7 lines
110 B
C

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