ft_lstdelone
Subject
FT_LSTDELONE (simplified)
NAME
ft_lstdelone -- removes one element from the list
SYNOPSIS
void ft_lstdelone(t_list *lst, void (*del)(void *));
DESCRIPTION
Free the memory of the element passed as parameter using the 'del' function then free(3). The memory of 'next' must not be freed.
PARAMETERS
lst: the element to free
del: address of the function that can delete the element's content
RETURN VALUES
None
AUTHORIZED EXTERNAL FUNCTIONS
free(3)Understandable explanation
Hints
Commented solution
Last updated