norming ft_strclr

This commit is contained in:
Tanguy MAZE 2018-04-07 11:17:06 +02:00
parent 871545305c
commit c1fa649a7f

View File

@ -6,17 +6,17 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */ /* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/06 23:27:33 by tmaze #+# #+# */ /* Created: 2018/04/06 23:27:33 by tmaze #+# #+# */
/* Updated: 2018/04/06 23:34:44 by tmaze ### ########.fr */ /* Updated: 2018/04/07 11:16:10 by tmaze ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
#include "libft.h" #include "libft.h"
void strclr(char *s) void ft_strclr(char *s)
{ {
int i; int i;
i = 0; i = 0;
while (s[i]) while (s[i])
s[i++] = '\0'; s[i++] = '\0';
} }