aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2020-09-09 15:51:20 +0200
committerCharles Cabergs <me@cacharle.xyz>2020-09-09 15:51:20 +0200
commit50876fe6b9e369d6b51bac9fa62b790ef5bda9d7 (patch)
tree8b0a3e59d6eb35dd2056f3cd17866946143225d3 /include
parentd3cf16e078e92ab85e5ad2f30f2c07ce382fd98e (diff)
downloadlibft-50876fe6b9e369d6b51bac9fa62b790ef5bda9d7.tar.gz
libft-50876fe6b9e369d6b51bac9fa62b790ef5bda9d7.tar.bz2
libft-50876fe6b9e369d6b51bac9fa62b790ef5bda9d7.zip
Added ft_htset_safe
Diffstat (limited to 'include')
-rw-r--r--include/libft_ht.h4
1 files changed, 3 insertions, 1 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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*));