-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_splitdel.c
More file actions
30 lines (27 loc) · 1.08 KB
/
Copy pathft_splitdel.c
File metadata and controls
30 lines (27 loc) · 1.08 KB
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
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_splitdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: patrisor <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/13 22:53:23 by patrisor #+# #+# */
/* Updated: 2019/05/13 23:05:17 by patrisor ### ########.fr */
/* */
/* ************************************************************************** */
#include "includes/libft.h"
int ft_splitdel(char ***split)
{
char **str;
int i;
i = 0;
str = *split;
while (*str)
{
ft_strdel(str);
i++;
str = &(*split)[i];
}
ft_memdel((void **)split);
return (0);
}