/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mdenys +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/10/28 19:10:44 by mdenys #+# #+# */ /* Updated: 2020/11/23 18:40:34 by mdenys ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" int ft_strlen(char *str) { int i; i = 0; if (*str) { while (str[i] != '\0') { i++; } } return (i); }