From 941099778b59da6b904c284e8a82affe4766124b Mon Sep 17 00:00:00 2001 From: Charles Date: Mon, 30 Mar 2020 22:27:16 +0200 Subject: Added doc --- src/utils.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/utils.c (limited to 'src/utils.c') diff --git a/src/utils.c b/src/utils.c new file mode 100644 index 0000000..2b655bf --- /dev/null +++ b/src/utils.c @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* util.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* 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 content Hash table entry content +*/ + +void ms_ht_del_str_entry(t_ftht_content *content) +{ + if (content == NULL) + return ; + free(content->key); + free(content->value); + free(content); +} -- cgit