-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strclr.c
executable file
·18 lines (17 loc) · 959 Bytes
/
ft_strclr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strclr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ioleksiu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/12/15 20:15:01 by ioleksiu #+# #+# */
/* Updated: 2016/12/20 20:23:21 by ioleksiu ### ########.fr */
/* */
/* ************************************************************************** */
void ft_strclr(char *s)
{
if (s)
while (*s)
*(s++) = '\0';
}