-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_free.c
23 lines (20 loc) · 996 Bytes
/
ft_free.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ariahi <ariahi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/31 16:49:04 by ariahi #+# #+# */
/* Updated: 2022/12/31 16:49:13 by ariahi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_free(char **s)
{
int i;
i = 0;
while (s[i])
free(s[i++]);
free(s);
}