ft_lstdelone - gabrielcoelhodacunha-old/42sp-libft GitHub Wiki
Description
Deletes the content of the element lst
by using the function del
, then frees the memory used by lst
.
Implementation
void ft_lstdelone(t_list *lst, void (*del)(void *))
{
del(lst->content);
free(lst);
lst = NULL;
}