blob: 188b762f12116b22ee2692c0059df031e897f7e7 (
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
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* util.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/02/28 11:56:31 by cacharle #+# #+# */
/* Updated: 2020/02/28 11:57:30 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
/*
** delete a hash table entry containing a allocated string key and value
*/
void ms_ht_del_str_entry(t_ftht_content *content)
{
if (content == NULL)
return ;
free(content->key);
free(content->value);
free(content);
}
|