diff options
| author | Cabergs Charles <cacharle@w-r5-p6.s19.be> | 2019-10-09 09:12:43 +0200 |
|---|---|---|
| committer | Cabergs Charles <cacharle@w-r5-p6.s19.be> | 2019-10-09 09:12:43 +0200 |
| commit | 840957aee277e7c426647cc133b2a41e7cecd9a9 (patch) | |
| tree | 96eaae76f3586e9fa141cd94b95e92b7a6db3d09 /ft_lstclear.c | |
| parent | f723389e5143c9ee0bc3d9774bb523b1c752b74c (diff) | |
| download | libft-840957aee277e7c426647cc133b2a41e7cecd9a9.tar.gz libft-840957aee277e7c426647cc133b2a41e7cecd9a9.tar.bz2 libft-840957aee277e7c426647cc133b2a41e7cecd9a9.zip | |
Normed, Makefile bonus rule
- bonus rule to add the *_bonus files to libft.a
- normed memmove, calloc and bonus
Diffstat (limited to 'ft_lstclear.c')
| -rw-r--r-- | ft_lstclear.c | 15 |
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; - } -} |
