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.
26 lines
1.0 KiB
26 lines
1.0 KiB
3 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
3 years ago
|
/* ft_free.c :+: :+: :+: */
|
||
3 years ago
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
3 years ago
|
/* Created: 2022/03/25 09:27:41 by narnaud #+# #+# */
|
||
|
/* Updated: 2022/03/25 14:18:37 by narnaud ### ########.fr */
|
||
3 years ago
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "../libft.h"
|
||
|
|
||
3 years ago
|
void ft_ilst_free(t_i_slist *list)
|
||
3 years ago
|
{
|
||
3 years ago
|
t_i_slist *next;
|
||
3 years ago
|
|
||
3 years ago
|
while (list)
|
||
3 years ago
|
{
|
||
3 years ago
|
next = list->next;
|
||
|
free(list);
|
||
|
list = next;
|
||
3 years ago
|
}
|
||
|
}
|