Hanstable
1.0.0
Simple hash table implementation in C
|
#include <hanstable.h>
Data Fields | |
uint64_t | hash |
const char * | key |
void * | content |
struct ht_HashtableEntry * | next |
An entry in the hash table
void* content |
The pointer to store in the hash table. Reading/writing formally MANDATORY. Seriously.
uint64_t hash |
The hash of the key (not the index!) of the entry. Reading/writing formally forbidden.
const char* key |
The actual key. Must be NUL-terminated. Does not have to be text. Writing formally forbidden, reading allowed.
struct ht_HashtableEntry* next |
The next entry if two entries collide into the same bucket. Reading/writing formally forbidden.