diff options
Diffstat (limited to 'libkern/strlen.c')
| -rw-r--r-- | libkern/strlen.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libkern/strlen.c b/libkern/strlen.c new file mode 100644 index 00000000..5cac06f2 --- /dev/null +++ b/libkern/strlen.c @@ -0,0 +1,8 @@ +#include <lib9.h> + +long +strlen(char *s) +{ + + return strchr(s, 0) - s; +} |
