blob: 761f5772e4d35b2f4887333fc405242440755786 (
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/30 08:30:53 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.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_dtdelcontent_all);
}
|