-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_lstdel.c
20 lines (18 loc) · 1.04 KB
/
ft_lstdel.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdel.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bwebb <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/06/11 16:24:25 by bwebb #+# #+# */
/* Updated: 2019/06/11 16:48:21 by bwebb ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstdel(t_list **alst, void (*del)(void *, size_t))
{
if ((*alst)->next != NULL)
ft_lstdel(&(*alst)->next, del);
ft_lstdelone(alst, del);
}