diff options
Diffstat (limited to 'src/mlibc/string/strlen.c')
-rw-r--r-- | src/mlibc/string/strlen.c | 3 |
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; |