42/d03/ex06/ft_strlen.c
2016-11-20 02:20:23 +02:00

24 lines
1,012 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/10/28 11:13:17 by gtertysh #+# #+# */
/* Updated: 2016/10/28 11:26:18 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strlen(char *str)
{
int count;
count = 0;
while (*str != '\0')
{
count++;
str++;
}
return (count);
}