blob: b85c2e0011052c667f556bb18131642728d7ec3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
struct hashtable;
struct hashtable* ht_alloc();
void ht_free(struct hashtable *ht);
void ht_insert(struct hashtable *ht, unsigned int key, void *value);
// Returns NULL if key is not present in the table.
void* ht_find(const struct hashtable *ht, unsigned int key);
// Does nothing if the key is not present in the table.
void ht_delete(struct hashtable *ht, unsigned int key);
|