diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-19 02:51:44 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-19 02:51:44 +0100 |
| commit | 3c3f1115f6e9a9b914e2dcbd796501ca7ce85342 (patch) | |
| tree | 29803aac5bd1fe039b9a8179e8c2a4f07e68ec82 /src/ht/ft_htdestroy_all.c | |
| parent | 0362f55a094b5ec813d940b66f397abfa13fbe49 (diff) | |
| download | libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.gz libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.tar.bz2 libft-3c3f1115f6e9a9b914e2dcbd796501ca7ce85342.zip | |
Tested ht*
Diffstat (limited to 'src/ht/ft_htdestroy_all.c')
| -rw-r--r-- | src/ht/ft_htdestroy_all.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/ht/ft_htdestroy_all.c b/src/ht/ft_htdestroy_all.c deleted file mode 100644 index 6f98a43..0000000 --- a/src/ht/ft_htdestroy_all.c +++ /dev/null @@ -1,26 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_htdestroy_all.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2020/01/30 08:29:58 by cacharle #+# #+# */ -/* Updated: 2020/01/31 10:43:13 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "libft_ht.h" - -static void st_htdelcontent_all(t_ftht_content *content) -{ - if (content == NULL) - return ; - free(content->key); - free(content->value); -} - -void ft_htdestroy_all(t_ftht *ht) -{ - ft_htdestroy(ht, *st_htdelcontent_all); -} |
