unsigned int hash(const char *key, int capacity)
Computes the hash value for a given key.
Definition hash.c:10
void * table_get(HashTable *table, const char *key)
Retrieves the value associated with a given key in the hash table.
Definition hash.c:76
Entry * table_insert(HashTable *table, const char *key, void *value)
Inserts a key-value pair into the hash table.
Definition hash.c:46
void table_insert_raw(HashTable *table, const char *key, void *value)
Inserts a key-value pair into the hash table without checking for duplicates.
Definition hash.c:72
Represents an entry in the hash table.
Definition hash.h:30