aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htdelone.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ht/ft_htdelone.c')
-rw-r--r--src/ht/ft_htdelone.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ht/ft_htdelone.c b/src/ht/ft_htdelone.c
index 77eae58..e3bb355 100644
--- a/src/ht/ft_htdelone.c
+++ b/src/ht/ft_htdelone.c
@@ -13,6 +13,10 @@
#include "libft.h"
#include "libft_ht.h"
+/*
+** Delete one hash table entry at `key`.
+*/
+
void ft_htdelone(t_ftht *ht, char *key, void (*del)(t_ftht_content*))
{
ft_lstremove_if(ht->entries + ft_hthash(ht, key),