diff --git a/strings.c b/strings.c new file mode 100644 index 0000000..6795fd5 --- /dev/null +++ b/strings.c @@ -0,0 +1,12 @@ +#include "main.h" + +/** + * _strlen - nuts + */ +int _strlen(char *str) +{ + if (*str) + return (1 + _strlen(str++)); + else + return (0); +}