-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strclr.c
24 lines (21 loc) · 1.05 KB
/
ft_strclr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* LE - / */
/* / */
/* ft_strclr.c .:: .:/ . .:: */
/* +:+:+ +: +: +:+:+ */
/* By: rcabotia <marvin@le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/10/04 18:25:38 by rcabotia #+# ## ## #+# */
/* Updated: 2018/10/10 17:14:47 by rcabotia ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
#include "libft.h"
void ft_strclr(char *s)
{
int i;
i = 0;
if (s)
while (s[i])
s[i++] = '\0';
}