/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* utils.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/28 11:56:31 by cacharle #+# #+# */ /* Updated: 2020/04/01 17:55:34 by charles ### ########.fr */ /* */ /* ************************************************************************** */ /* ** \file utils.c ** \brief Various functions */ #include "minishell.h" /* ** \brief Delete function for a entry containing ** an 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); }