Files
rosetta/lib/libc/core/string/strlen.c
Max Wash 68714fa0e5 lib: c: combine libc and ulibc
libc is now made up of several independent components, each of which is individually compiled into a static library.
they are then all combined into a single shared library.
2026-03-06 20:12:58 +00:00

12 lines
119 B
C

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