From 840957aee277e7c426647cc133b2a41e7cecd9a9 Mon Sep 17 00:00:00 2001 From: Cabergs Charles Date: Wed, 9 Oct 2019 09:12:43 +0200 Subject: Normed, Makefile bonus rule - bonus rule to add the *_bonus files to libft.a - normed memmove, calloc and bonus --- ft_lstclear.c | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 ft_lstclear.c (limited to 'ft_lstclear.c') 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 -#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; - } -} -- cgit