| 123456789101112131415161718192021222324 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_strclr.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* 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';
- }
|