-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfree_and_errors.c
25 lines (22 loc) · 1.01 KB
/
free_and_errors.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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* free_and_errors.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ltombell <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/06 11:33:37 by ltombell #+# #+# */
/* Updated: 2022/12/07 19:08:58 by ltombell ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void ft_free_list(t_lista *lst)
{
t_lista *tmp;
while (lst)
{
tmp = lst;
lst = lst->next;
free(tmp);
}
}