blob: 1cae2fdcfd13435a9e51e64548d0c611e96eca04 (
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_key.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/01/30 08:31:02 by cacharle #+# #+# */
/* Updated: 2020/01/30 09:46:14 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "libft_ht.h"
void ft_inter_htdelcontent_key(t_ftht_content *content)
{
if (content == NULL)
return ;
free(content->key);
}
void ft_htdestroy_key(t_ftht *ht)
{
ft_htdestroy(ht, *ft_inter_htdelcontent_key);
}
|