-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_lstdelone_bonus.c
23 lines (21 loc) · 1.1 KB
/
ft_lstdelone_bonus.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstdelone.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: estettle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/07 22:28:09 by estettle #+# #+# */
/* Updated: 2024/10/07 22:28:09 by estettle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* ft_lstdelone()
* deletes the item pointed by *lst, using the del() function for the content,
* then freeing the item.
*/
void ft_lstdelone(t_list *lst, void (*del)(void *))
{
del(lst->content);
free(lst);
}