lib: add libc and micro libc

This commit is contained in:
2026-02-19 19:28:50 +00:00
parent 9cc60cf3f1
commit ba455059ac
22 changed files with 9868 additions and 0 deletions

11
lib/libc/string/strlen.c Normal file
View File

@@ -0,0 +1,11 @@
#include <string.h>
size_t strlen(const char *str)
{
size_t res = 0;
while (str[res]) {
res++;
}
return res;
}