/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strlen.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/23 14:47:27 by bchanot #+# #+# */ /* Updated: 2018/10/29 11:58:05 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" size_t ft_strlen(const char *const s) { size_t cpt; cpt = 0; if (s) while (s[cpt]) cpt++; return (cpt); }