aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htcontent_new.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-04 12:49:31 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-04 12:49:31 +0100
commit2a9133a87109f9430e4827a858ff86596c5f98d5 (patch)
treedd345d9bafab86de2b2a9f7e07f83c5b7fc6df43 /src/ht/ft_htcontent_new.c
parent915f1b888cf9c05e4b61321f84ac045eacd8ddd1 (diff)
downloadlibft-2a9133a87109f9430e4827a858ff86596c5f98d5.tar.gz
libft-2a9133a87109f9430e4827a858ff86596c5f98d5.tar.bz2
libft-2a9133a87109f9430e4827a858ff86596c5f98d5.zip
Added hash table documentation
Diffstat (limited to 'src/ht/ft_htcontent_new.c')
-rw-r--r--src/ht/ft_htcontent_new.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ht/ft_htcontent_new.c b/src/ht/ft_htcontent_new.c
index 214e125..7dd4f20 100644
--- a/src/ht/ft_htcontent_new.c
+++ b/src/ht/ft_htcontent_new.c
@@ -13,6 +13,12 @@
#include "libft.h"
#include "libft_ht.h"
+/*
+** Create a new hash table key/value pair.
+** `key` is always duplicated.
+** Return a pointer to the created content or NULL is an allocation failed.
+*/
+
t_ftht_content *ft_htcontent_new(char *key, void *value)
{
t_ftht_content *content;