-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_lstdel.c
executable file
·27 lines (24 loc) · 1.08 KB
/
ft_lstdel.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
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/27 18:53:09 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:44:43 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstdel(t_list **alst, void (*del)(void *, size_t))
{
t_list *temp;
if (!alst)
return ;
while (*alst)
{
temp = (*alst)->next;
ft_lstdelone(alst, del);
*alst = temp;
}
}