15 bht_node_t *buckets[TABLE_SIZE];
19unsigned int hash(
const char *key);
hashmap_t * create_map(void)
Allocate and initialize a new hashmap.
Definition b_hashmap.c:36
void insert(hashmap_t *map, const char *name, void *bht_node_p)
Insert a key-value pair into the hashmap.
Definition b_hashmap.c:55
unsigned int hash(const char *key)
Compute hash value of a string key.
Definition b_hashmap.c:20
void * get(hashmap_t *map, const char *name)
Retrieve a value from the hashmap by key.
Definition b_hashmap.c:75
void free_map(hashmap_t *map)
Free all memory used by the hashmap.
Definition b_hashmap.c:96
Definition b_hashmap.h:14