#include "../include/hash_table.h" #include "../include/helpers.h" #include ht_t *init_ht(size_t size) { ht_t *ht = safe_calloc(1, sizeof(size)); size_t realsize = size == 0 ? DEFAULT_HT_SIZE : size; ht->buckets = safe_calloc(realsize, sizeof(sll_t *)); ht->size = realsize; return ht; }