diff options
Diffstat (limited to 'kernel/string.c')
-rw-r--r-- | kernel/string.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/kernel/string.c b/kernel/string.c new file mode 100644 index 0000000..d038c27 --- /dev/null +++ b/kernel/string.c @@ -0,0 +1,9 @@ +#include "string.h" + +size_t strlen(const char *str) +{ + size_t len = 0; + while(str[len]) + len++; + return len; +} |