diff options
Diffstat (limited to 'src/ht/ft_htdestroy_value.c')
| -rw-r--r-- | src/ht/ft_htdestroy_value.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ht/ft_htdestroy_value.c b/src/ht/ft_htdestroy_value.c new file mode 100644 index 0000000..b71b960 --- /dev/null +++ b/src/ht/ft_htdestroy_value.c @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_htdestroy_value.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/01/30 08:31:29 by cacharle #+# #+# */ +/* Updated: 2020/01/30 08:31:49 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +static void st_htdelcontent_value(t_ftht_content *content) +{ + if (content == NULL) + return ; + free(content->value); +} + +void ft_htdestroy_value(t_ftht *ht) +{ + ft_htdestroy(ht, *st_dtdelcontent_value); +} |
