blob: 5989d7156f3b5eb6c00e4b45eefbda998c6cd352 (
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
27
28
29
30
31
32
33
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* 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 */
/* */
/* ************************************************************************** */
/**
** \file utils.c
** \brief Various functions
*/
#include "minishell.h"
/**
** \brief Delete function for a entry containing a allocated key and value
** \param entry Hash table entry
**
*/
void ht_del_str_entry(t_ftht_entry *entry)
{
if (entry == NULL)
return ;
free(entry->key);
free(entry->value);
free(entry);
}
|