diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-02-06 16:31:19 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-02-06 16:31:19 +0000 |
| commit | 2067ca185220348b70b35c96e175dfb87cc05592 (patch) | |
| tree | 860578e275ec43cef12f4bfb355d258b918ea135 /lib/string.c | |
| parent | 7b91c46a8ebf38b2c1c80c1f1e63c4d4dfd10640 (diff) | |
we have kprintf()
Diffstat (limited to 'lib/string.c')
| -rw-r--r-- | lib/string.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c new file mode 100644 index 0000000..968467e --- /dev/null +++ b/lib/string.c @@ -0,0 +1,11 @@ +#include <kc/lib.h> + +size_t strlen(const char *s) +{ + size_t l = 0; + + while (*s++) l++; + + return l; +} + |
