From 4546c75d685475d8b9f215b588364e1d1bbd0b79 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 29 Apr 2020 19:21:29 +0200 Subject: MUCH work in libc Also cleaned up some syscalls etc --- src/userspace/libc/string/strlen.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/userspace/libc/string/strlen.c (limited to 'src/userspace/libc/string/strlen.c') diff --git a/src/userspace/libc/string/strlen.c b/src/userspace/libc/string/strlen.c new file mode 100644 index 0000000..cc8b804 --- /dev/null +++ b/src/userspace/libc/string/strlen.c @@ -0,0 +1,9 @@ +#include + +u8 strlen(char *str) +{ + u8 len = 0; + while (str[len]) + len++; + return len; +} \ No newline at end of file -- cgit v1.2.3