25 lines
1.1 KiB
C
25 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_lstdelone.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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);
|
|
}
|