-
Notifications
You must be signed in to change notification settings - Fork 4
/
ft_strclr.c
18 lines (17 loc) · 957 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: vbrazhni <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/02 15:20:44 by vbrazhni #+# #+# */
/* Updated: 2018/07/02 15:20:46 by vbrazhni ### ########.fr */
/* */
/* ************************************************************************** */
void ft_strclr(char *s)
{
if (s)
while (*s)
*s++ = '\0';
}