diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-07-24 08:02:55 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-07-24 08:02:55 +0200 |
| commit | 5bab06313e71e9827baa426a02bbaf2a00b4e6a0 (patch) | |
| tree | 5604e51c0008088f25b2f5dfb9143a852dd079dd /c12/ex06/ft_list_clear.c | |
| parent | 23ad79e8b41c25bb4992d103d29a17612a52e351 (diff) | |
| download | piscine-5bab06313e71e9827baa426a02bbaf2a00b4e6a0.tar.gz piscine-5bab06313e71e9827baa426a02bbaf2a00b4e6a0.tar.bz2 piscine-5bab06313e71e9827baa426a02bbaf2a00b4e6a0.zip | |
c12 passed, c13 start
Diffstat (limited to 'c12/ex06/ft_list_clear.c')
| -rw-r--r-- | c12/ex06/ft_list_clear.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/c12/ex06/ft_list_clear.c b/c12/ex06/ft_list_clear.c index 811469b..2263bf0 100644 --- a/c12/ex06/ft_list_clear.c +++ b/c12/ex06/ft_list_clear.c @@ -6,18 +6,17 @@ /* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/09 17:53:02 by cacharle #+# #+# */ -/* Updated: 2019/07/17 18:20:11 by cacharle ### ########.fr */ +/* Updated: 2019/07/23 15:42:46 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ +#include <stdlib.h> #include "ft_list.h" -void ft_list_clear(t_list *begin_list, void (*free_fct)(void *)) +void ft_list_clear(t_list *begin_list, void (*free_fct)(void *)) { t_list *tmp; - if (begin_list == NULL) - return ; while (begin_list) { free_fct(begin_list->data); |
