tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
ft_lstclear_bonus.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstclear_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/28 01:38:22 by tgrekov #+# #+# */
/* Updated: 2023/11/20 19:21:31 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file ft_lstclear_bonus.c.

#include "libft.h"
Include dependency graph for ft_lstclear_bonus.c:

Go to the source code of this file.

Functions

void ft_lstclear (t_list **lst, void(*del)(void *))
 Delete every node in a list along with it's content.
 

Function Documentation

◆ ft_lstclear()

void ft_lstclear ( t_list **  lst,
void(*)(void *)  del 
)

Delete every node in a list along with it's content.

Parameters
[in,out]lstPointer to a pointer to the first node in the list
[in]delFunction used to properly handle the deletion of the node's content

Definition at line 31 of file ft_lstclear_bonus.c.

References ft_lstdelone(), and s_list::next.

Here is the call graph for this function:
Here is the caller graph for this function: