-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strclr.c
21 lines (19 loc) · 989 Bytes
/
ft_strclr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strclr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edelangh <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/04 18:52:22 by edelangh #+# #+# */
/* Updated: 2014/11/10 12:14:34 by edelangh ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_strclr(char *s)
{
if (!s)
return ;
while (*s)
*(s++) = '\0';
}