aboutsummaryrefslogtreecommitdiff
path: root/src/ht/ft_hthash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ht/ft_hthash.c')
-rw-r--r--src/ht/ft_hthash.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ht/ft_hthash.c b/src/ht/ft_hthash.c
index e7e696c..c5d42ea 100644
--- a/src/ht/ft_hthash.c
+++ b/src/ht/ft_hthash.c
@@ -12,9 +12,17 @@
#include "libft_ht.h"
-t_ftht_digest ft_hthash(t_ftht *ht, char *key)
+/*
+** \brief Hash a string
+** \param ht So that the index is in the hash table bound
+** \param key String to hash
+** \return Hash
+*/
+
+// maybe use a less efficient but understandable function
+size_t ft_hthash(t_ftht *ht, char *key)
{
- t_ftht_digest digest;
+ size_t digest;
if (*key == '\0')
return (0);