-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_free_array.c
More file actions
27 lines (24 loc) · 1.01 KB
/
ft_free_array.c
File metadata and controls
27 lines (24 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_free_array.c :+: :+: */
/* +:+ */
/* By: nsterk <nsterk@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2021/03/22 15:44:37 by nsterk #+# #+# */
/* Updated: 2021/03/22 16:16:55 by nsterk ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_free_array(char **str)
{
int i;
i = 0;
while (str[i])
{
free(str);
i++;
}
free(str[i]);
return (1);
}