_strlen (docs needed)

This commit is contained in:
LinlyBoi
2023-08-19 21:50:57 +03:00
parent af9400db50
commit ed9384e11f

12
strings.c Normal file
View File

@@ -0,0 +1,12 @@
#include "main.h"
/**
* _strlen - nuts
*/
int _strlen(char *str)
{
if (*str)
return (1 + _strlen(str++));
else
return (0);
}