meta: move photon/libc to root
This commit is contained in:
11
libc/string/strlen.c
Normal file
11
libc/string/strlen.c
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <string.h>
|
||||
|
||||
size_t strlen(const char *str)
|
||||
{
|
||||
const char *start = str;
|
||||
while (*str) {
|
||||
str++;
|
||||
}
|
||||
|
||||
return str - start;
|
||||
}
|
||||
Reference in New Issue
Block a user