42-archive/42-piscine-c/d10/ex00/srcs/ft_strlen.c
2016-08-25 20:50:28 +02:00

21 lines
982 B
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlen.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/08/02 14:37:01 by jhalford #+# #+# */
/* Updated: 2016/08/09 10:48:02 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */
int ft_strlen(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
i++;
return (i);
}