blob: 6f98a4345d76111a05c897153acca0b29363bb58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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);
}
|