aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/string/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/string/strlen.c')
-rw-r--r--src/kernel/lib/string/strlen.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/lib/string/strlen.c b/src/kernel/lib/string/strlen.c
new file mode 100644
index 0000000..77e3c00
--- /dev/null
+++ b/src/kernel/lib/string/strlen.c
@@ -0,0 +1,8 @@
+#include <kernel/lib/string.h>
+
+size_t strlen(const char *str)
+{
+ size_t len = 0;
+ while (str[len]) len++;
+ return len;
+} \ No newline at end of file