diff options
Diffstat (limited to 'kernel/lib/stdlib.c')
-rw-r--r-- | kernel/lib/stdlib.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/lib/stdlib.c b/kernel/lib/stdlib.c new file mode 100644 index 0000000..6710da2 --- /dev/null +++ b/kernel/lib/stdlib.c @@ -0,0 +1,8 @@ +#include <stdlib.h> + +size_t strlen(const char* str) { + size_t ret = 0; + while (str[ret] != 0) + ret++; + return ret; +} |