simple toy hash-map implementation in C
License
gowda/honnu-hash
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
hash_map_t *hash_map_init () - initialize a hash map void *hash_map_set (hash_map_t *map, char *key, void *value) - insert a new entry into the hash-map @map with key as @key and value @value. returns a pointer to existing @value for the @key, otherwise NULL. caller _should_ handle the return value. void *hash_map_get (hash_map_t *map, char *key) - retrieve from @map the value corresponding to @key void *hash_map_unset (hash_map_t *map, char *key) - delete the entry with @key from @map. returns @value which _should_ be handled by the caller. int hash_map_dump (hash_map_t *map) - dump the contents of the hash-map @map as key, value pair and also provide hash distribution statistics
About
simple toy hash-map implementation in C
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published