db_htable_new ()
db_htable_push ()
db_htable_pop ()
db_htable_destroy ()
db_list_new ()
db_list_insert ()
db_list_remove ()
db_list_foreach ()
db_list_find ()
db_list_destroy ()
db_log_mesg ()
db_log_err ()
db_log_debug ()
db_mem_alloc ()
db_mem_free ()
db_string_hash ()
db_string_tolower ()
db_string_toupper ()
db_time_local ()
db_time_current ()
db_time_delta ()
db_time_update_diff ()
db_time_update_time ()
#include <htable.h>
Hash tables provide an easy way to associate key - value pairs. A hash function genereates a
hash value from the given key. Both the newly created hash and the address of the value are stored
inside of the table.
Note: No data will be copied.
Creates a new hash table.
This function allocates the space for a new hash table and returns the pointer to it or otherwise NULL on error.
Inserts a new hash pair into the table.
This function generates the hash value for the key and stores the hash and the given value in the table.
Gets the appropriate value to a key from the table.
This function returns the value to the given key or otherwise NULL if not found.
Destroys the table.
This function destroys the table and free's the allocated memory.
#include <list.h>
Hash tables provide an easy way to associate key - value pairs. A hash function genereates a
hash value from the given key. Both the newly created hash and the address of the value are stored
inside of the table.
Note: No data will be copied.
Creates a new hash table.
This function allocates the space for a new hash table and returns the pointer to it or otherwise NULL on error.