/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_lstdelone.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/12 11:42:11 by rparodi #+# #+# */ /* Updated: 2025/09/01 16:36:07 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "list.h" #include /** * @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); }