Character string to integer map implementation. More...
#include <errno.h>#include <malloc.h>#include <mem.h>#include <unistd.h>#include "char_map.h"
Defines | |
| #define | CHAR_MAP_MAGIC_VALUE 0x12345611 | 
| Internal magic value for a consistency check.   | |
Functions | |
| int | char_map_add_item (char_map_ref map, const char *identifier, size_t length, const int value) | 
| Adds the value with the key to the map.   | |
| char_map_ref | char_map_find_node (const char_map_ref map, const char *identifier, const size_t length) | 
| Returns the node assigned to the key from the map.   | |
| int | char_map_get_value (const char_map_ref map) | 
| Returns the value assigned to the map.   | |
| int | char_map_is_valid (const char_map_ref map) | 
| Checks if the map is valid.   | |
| int | char_map_add (char_map_ref map, const char *identifier, size_t length, const int value) | 
| Adds the value with the key to the map.   | |
| void | char_map_destroy (char_map_ref map) | 
| Clears and destroys the map.   | |
| int | char_map_exclude (char_map_ref map, const char *identifier, size_t length) | 
| Excludes the value assigned to the key from the map.   | |
| int | char_map_find (const char_map_ref map, const char *identifier, size_t length) | 
| Returns the value assigned to the key from the map.   | |
| int | char_map_initialize (char_map_ref map) | 
| Initializes the map.   | |
| int | char_map_update (char_map_ref map, const char *identifier, size_t length, const int value) | 
| Adds or updates the value with the key to the map.   | |
Character string to integer map implementation.
 1.6.1