kernel: implement initcalls and a testing system
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
#include <socks/libc/string.h>
|
||||
|
||||
size_t strlen(const char *str) {
|
||||
if (!str) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
size_t res = 0;
|
||||
while (str[res]) {
|
||||
res++;
|
||||
}
|
||||
|
||||
return res;
|
||||
size_t res = 0;
|
||||
while (str[res]) {
|
||||
res++;
|
||||
}
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user