aboutsummaryrefslogtreecommitdiff
path: root/ft_lstclear.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_lstclear.c')
-rw-r--r--ft_lstclear.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/ft_lstclear.c b/ft_lstclear.c
deleted file mode 100644
index b944cda..0000000
--- a/ft_lstclear.c
+++ /dev/null
@@ -1,15 +0,0 @@
-#include <stdlib.h>
-#include "libft.h"
-
-void ft_lstclear(t_list **lst, void (*del)(void *))
-{
- t_list *tmp;
-
- while (*lst != NULL)
- {
- tmp = (*lst)->next;
- (*del)((*lst)->content);
- free(*lst);
- *lst = tmp;
- }
-}