aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_htnew.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ht/ft_htnew.c')
-rw-r--r--src/ht/ft_htnew.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ht/ft_htnew.c b/src/ht/ft_htnew.c
index 6827c36..465eabf 100644
--- a/src/ht/ft_htnew.c
+++ b/src/ht/ft_htnew.c
@@ -13,6 +13,12 @@
#include "libft.h"
#include "libft_ht.h"
+/*
+** Create a new hash table.
+** `size` is the size of the underlying array of linked list (buckets)
+** Return NULL is an allocation failed.
+*/
+
t_ftht *ft_htnew(t_ftsize size)
{
t_ftht *ht;