-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_free_split.c
24 lines (21 loc) · 1022 Bytes
/
ft_free_split.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free_split.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: toramo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/02 10:49:01 by toramo #+# #+# */
/* Updated: 2024/01/02 10:49:02 by toramo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_free_split(char **arr)
{
int i;
i = 0;
while (arr[i])
free(arr[i++]);
free(arr);
return (0);
}