hmap.h(0)
limb manual
hmap.h(0)
NAME
hmap.h - hash table management
SYNOPSIS
#include <limb/hmap.h>
DESCRIPTION
The header defines the needed functions to work with hash tables.
Constants
The following constants are defined :
HMAP_ZERO
Value that can be used to initialize a stack-allocated hash table.
Structures
The following structures are defined :
struct hmap
The structure that describes the hash table on which the functions operate, which should be considered opaque.
Functions
The following functions are defined :
Initializes an hash table, setting the size of its elements.
To iterate over all elements in an hash table.
Sets (or adds) the data associated with the given key.
Returns a pointer to the data associated with the given key.
Frees all memory allocated by the table.