-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_lstdelone.c
More file actions
20 lines (18 loc) · 1015 Bytes
/
ft_lstdelone.c
File metadata and controls
20 lines (18 loc) · 1015 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdelone.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: eagoumi <eagoumi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/27 03:52:04 by eagoumi #+# #+# */
/* Updated: 2022/11/08 20:21:27 by eagoumi ### ########.fr */
/* */
/* ************************************************************************** */
#include "./libft.h"
void ft_lstdelone(t_list *lst, void (*del)(void *))
{
del(lst->content);
free(lst);
lst = NULL;
}