forked from nicolas-arnaud/Minishell
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.0 KiB
25 lines
1.0 KiB
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_free.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2022/03/25 09:27:41 by narnaud #+# #+# */
|
|
/* Updated: 2022/03/25 14:18:37 by narnaud ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "../libft.h"
|
|
|
|
void ft_ilst_free(t_i_slist *list)
|
|
{
|
|
t_i_slist *next;
|
|
|
|
while (list)
|
|
{
|
|
next = list->next;
|
|
free(list);
|
|
list = next;
|
|
}
|
|
}
|
|
|