|
DSA Hacking Club Library
|
The hash table structure. More...
#include <hashtable.h>
Public Attributes | |
| void ** | table |
| Dynamic array of pointers to stored objects. | |
| size_t | size |
| Number of buckets in the table. | |
| get_key_func | get_key |
| Function to extract keys from objects. | |
| const char *(* | get_key )(const void *) |
The hash table structure.
Stores a dynamically allocated array of void* pointers, so it can handle any data type. The user must supply a function to extract string keys from the stored data.