From c98de126d2252fe47dc2a9094a5f9a8fa6b4b60a Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sun, 11 Oct 2020 15:52:52 +0200 Subject: Removing libft/minishell_test submodules, Removing subject/README/etc --- libft/src/ht/ft_htset_safe.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libft/src/ht/ft_htset_safe.c (limited to 'libft/src/ht/ft_htset_safe.c') diff --git a/libft/src/ht/ft_htset_safe.c b/libft/src/ht/ft_htset_safe.c new file mode 100644 index 0000000..fd132d2 --- /dev/null +++ b/libft/src/ht/ft_htset_safe.c @@ -0,0 +1,25 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_htset_safe.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/09/09 15:46:10 by charles #+# #+# */ +/* Updated: 2020/09/09 15:46:24 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft_ht.h" + +t_ftht_entry *ft_htset_safe( + t_ftht *ht, + char *key, + void *value, + void (*del)(void*) +) +{ + if (value == NULL) + return (NULL); + return (ft_htset(ht, key, value, del)); +} -- cgit