From 95ccc46ad62c59e648679acad8b44ba5d4465e3d Mon Sep 17 00:00:00 2001 From: Dominik Kaiser Date: Wed, 8 May 2024 13:14:19 +0200 Subject: Add libft as dir --- libft/ft_lstclear_bonus.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 libft/ft_lstclear_bonus.c (limited to 'libft/ft_lstclear_bonus.c') diff --git a/libft/ft_lstclear_bonus.c b/libft/ft_lstclear_bonus.c new file mode 100644 index 0000000..f661fc9 --- /dev/null +++ b/libft/ft_lstclear_bonus.c @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_lstclear_bonus.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser next) + { + next = current->next; + ft_lstdelone(current, del); + current = next; + } + ft_lstdelone(current, del); + } + *lst = NULL; +} -- cgit v1.2.3