This repository has been archived on 2024-06-25. You can view files and clone it, but cannot push or open issues or pull requests.
rockOS/libc/string/strlen.c
2022-07-18 09:59:04 +03:00

10 lines
136 B
C

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