aboutsummaryrefslogtreecommitdiff
path: root/src/mlibc/string/strlen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlibc/string/strlen.c')
-rw-r--r--src/mlibc/string/strlen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mlibc/string/strlen.c b/src/mlibc/string/strlen.c
index 1143683..133ee3d 100644
--- a/src/mlibc/string/strlen.c
+++ b/src/mlibc/string/strlen.c
@@ -1,6 +1,7 @@
#include <mlibc/string.h>
-size_t strlen(const char *str) {
+size_t strlen(const char *str)
+{
size_t len = 0;
while (str[len]) len++;
return len;