-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_lstdelone.c
29 lines (27 loc) · 1.34 KB
/
ft_lstdelone.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
28
29
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdelone.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cjackows <@student.42wolfsburg.de> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/12 17:25:06 by cjackows #+# #+# */
/* Updated: 2023/06/01 10:17:05 by cjackows ### ########.fr */
/* */
/* ************************************************************************** */
#include "../inc/libft.h"
/**
* @brief Takes as parameter a node and frees the memory of the node’s
* content using the function ’del’ given as a parameter and free the node.
* The memory of ’next’ must not be freed.
*
* @param lst The node to free.
* @param del The address of the function used to delete the content.
*/
// void ft_lstdelone(t_list *lst, void (*del)(void*))
// {
// if (!lst)
// return ;
// del((void *)(lst->content));
// free(lst);
// }