-
Notifications
You must be signed in to change notification settings - Fork 2
A C library that implements an in-memory hash table.
License
rothrock/ez_hash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The ez_hash library provides a set of functions and data structures that implement an in-memory hash table. // initialize a hash table. ez_hash_table* ez_hash_init(uint32_t n); // set, get, delete key-value pairs. uint32_t ez_hash_set(ez_hash_table* h, char* key, char* value); char* ez_hash_get(ez_hash_table* h, char* key); int ez_hash_del(ez_hash_table* h, char* key); // free the hash table void ez_hash_free(ez_hash_table* h); The ez_hash library uses the FNV algorithm and source code. Both the FNV algorithm and source code are in the public domain. See the file fnv.h included with this software. $ make $ sudo make install Find examples in example.c. Build it like so: $ make example $ ./example usage: ./example bits(1-32) key value [key value]...
About
A C library that implements an in-memory hash table.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published