-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_str2del.c
28 lines (25 loc) · 1.03 KB
/
ft_str2del.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str2del.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmoska <tmoska@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/16 22:13:47 by moska #+# #+# */
/* Updated: 2017/02/19 23:24:44 by tmoska ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_str2del(char ***tab)
{
int i;
i = 0;
if (!(*tab))
return ;
while ((*tab)[i])
{
ft_strdel(&((*tab)[i]));
i++;
}
free(*tab);
}