-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray_cleanup.c
More file actions
26 lines (23 loc) · 1.01 KB
/
Copy patharray_cleanup.c
File metadata and controls
26 lines (23 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* error_handler.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tbui-quo <tbui-quo@student.42wolfsburg.d> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/08/23 16:05:18 by tbui-quo #+# #+# */
/* Updated: 2023/08/23 16:05:18 by tbui-quo ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_free_array(char *array[])
{
size_t i;
i = 0;
while (array[i])
{
free(array[i]);
i++;
}
free(array);
}