|
Libft
42 Libft library documentation
|
Include dependency graph for ft_lstclear.c:Go to the source code of this file.
Functions | |
| void | ft_lstclear (t_list **lst, void(*del)(void *)) |
| Clears a linked list. This function takes a pointer to the first element of a linked list and a function pointer to a deletion function, then removes and frees all elements in the list. | |
| void ft_lstclear | ( | t_list ** | lst, |
| void(*)(void *) | del | ||
| ) |
Clears a linked list. This function takes a pointer to the first element of a linked list and a function pointer to a deletion function, then removes and frees all elements in the list.
| lst | A pointer to the pointer to the first element of the list. |
| del | A function pointer to the deletion function. |
Definition at line 25 of file ft_lstclear.c.
References ft_lstdelone(), and s_list::next.
Referenced by ft_lstmap().
Here is the call graph for this function:
Here is the caller graph for this function: