-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstdelone.c
More file actions
21 lines (19 loc) · 1 KB
/
ft_lstdelone.c
File metadata and controls
21 lines (19 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_lstdelone.c :+: :+: */
/* +:+ */
/* By: nsterk <nsterk@student.codam.nl> +#+ */
/* +#+ */
/* Created: 2020/11/03 17:50:34 by nsterk #+# #+# */
/* Updated: 2020/11/04 00:19:05 by nsterk ######## odam.nl */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_lstdelone(t_list *lst, void (*del)(void*))
{
if (!lst || !del)
return ;
del(lst->content);
free(lst);
}