7.2 Hash tables
- Function: {} {struct hash_control *} hash_new (void)
- Creates the hash table control structure.
- Function: {} void hash_die (struct hash_control *)
- Destroy a hash table.
- Function: {} PTR hash_delete (struct hash_control *, const char *)
- Deletes entry from the hash table, returns the value it had.
- Function: {} PTR hash_replace (struct hash_control *, const char *, PTR)
- Updates the value for an entry already in the table, returning the old value.
If no entry was found, just returns NULL.
- Function: {} {const char *} hash_insert (struct hash_control *, const char *, PTR)
- Inserting a value already in the table is an error.
Returns an error message or NULL.
- Function: {} {const char *} hash_jam (struct hash_control *, const char *, PTR)
- Inserts if the value isn't already present, updates it if it is.
This document was generated
by system on December, 2 2004
using texi2html