/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstdelone.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/12 11:42:11 by rparodi #+# #+# */ /* Updated: 2024/10/31 17:46:00 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" /** * @brief Clear the element of the list with the function * * @param lst the element of the list to be clear * @param del the function to clear the list */ void ft_lstdelone(t_list *lst, void (*del)(void *)) { del(lst->content); free(lst); }