diff options
Diffstat (limited to 'ft_strclr.c')
| -rw-r--r-- | ft_strclr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ft_strclr.c b/ft_strclr.c index 2f936bf..c927a46 100644 --- a/ft_strclr.c +++ b/ft_strclr.c @@ -6,12 +6,16 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/07 10:15:18 by cacharle #+# #+# */ -/* Updated: 2019/10/07 10:15:24 by cacharle ### ########.fr */ +/* Updated: 2019/11/20 02:02:02 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ +#include "libft.h" + void ft_strclr(char *s) { + if (s == NULL) + return ; while (*s) *s++ = '\0'; } |
