aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htdestroy_key.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ht/ft_htdestroy_key.c')
-rw-r--r--src/ht/ft_htdestroy_key.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ht/ft_htdestroy_key.c b/src/ht/ft_htdestroy_key.c
new file mode 100644
index 0000000..e3d562f
--- /dev/null
+++ b/src/ht/ft_htdestroy_key.c
@@ -0,0 +1,25 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_htdestroy_key.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2020/01/30 08:31:02 by cacharle #+# #+# */
+/* Updated: 2020/01/30 09:46:14 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
+#include "libft.h"
+
+void ft_inter_htdelcontent_key(t_ftht_content *content)
+{
+ if (content == NULL)
+ return ;
+ free(content->key);
+}
+
+void ft_htdestroy_key(t_ftht *ht)
+{
+ ft_htdestroy(ht, *st_dtdelcontent_key);
+}