/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strclr.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: bchanot +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2015/11/25 18:16:43 by bchanot #+# #+# */ /* Updated: 2015/11/28 23:24:29 by bchanot ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" void ft_strclr(char *s) { int cpt; if (s == NULL) return ; cpt = ft_strlen(s); while (cpt--) s[cpt] = '\0'; }