-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_freetab.c
29 lines (26 loc) · 1.05 KB
/
ft_freetab.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
25
26
27
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_freetab.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dbaldy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/05 11:53:29 by dbaldy #+# #+# */
/* Updated: 2016/02/26 12:20:46 by dbaldy ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_freetab(char **tab)
{
int i;
i = 0;
while (tab[i] != NULL)
{
free(tab[i]);
tab[i] = NULL;
i++;
}
free(tab);
tab = NULL;
return (0);
}