42-archive/libft/ft_strlen.c
2016-08-30 00:40:33 +02:00

13 lines
130 B
C

#include "libft.h"
size_t ft_strlen(const char *s)
{
int i;
i = 0;
if (!s)
return (0);
while (s[i])
i++;
return (i);
}