From 50876fe6b9e369d6b51bac9fa62b790ef5bda9d7 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 9 Sep 2020 15:51:20 +0200 Subject: Added ft_htset_safe --- include/libft_ht.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/libft_ht.h') diff --git a/include/libft_ht.h b/include/libft_ht.h index c53ee4d..91aa153 100644 --- a/include/libft_ht.h +++ b/include/libft_ht.h @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/01/31 10:36:09 by cacharle #+# #+# */ -/* Updated: 2020/04/04 22:34:53 by charles ### ########.fr */ +/* Updated: 2020/09/09 15:47:22 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -54,6 +54,8 @@ void ft_htdestroy(t_ftht *ht, t_ftdel_func del); void *ft_htget(t_ftht *ht, char *key); t_ftht_entry *ft_htset(t_ftht *ht, char *key, void *value, t_ftdel_func del); +t_ftht_entry *ft_htset_safe(t_ftht *ht, char *key, void *value, + t_ftdel_func del); void ft_htdelone(t_ftht *ht, char *key, t_ftdel_func del); t_ftht_entry *ft_htentry_new(char *key, void *value); void ft_htiter(t_ftht *ht, void (*f)(t_ftht_entry*)); -- cgit