-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_free_split.c
More file actions
28 lines (25 loc) · 1.11 KB
/
Copy pathft_free_split.c
File metadata and controls
28 lines (25 loc) · 1.11 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_free_split.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sede-san <sede-san@student.42madrid.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/07/10 03:00:12 by sede-san #+# #+# */
/* Updated: 2025/08/01 00:15:46 by sede-san ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_free_split(char **splitted)
{
size_t i;
i = 0;
while (splitted[i])
{
ft_bzero(splitted[i], ft_strlen(splitted[i]));
free(splitted[i]);
i++;
}
ft_bzero(splitted, (i + 1) * sizeof(char *));
free(splitted);
}