Go to the source code of this file.
Defines | |
#define | hash_enter(hp, data) !hash_item( hp, data, 1 ) |
#define | hash_check(hp, data) hash_item( hp, data, 0 ) |
Typedefs | |
typedef hashdata | HASHDATA |
Functions | |
hash * | hash_init (int datalen, const char *name) |
int | hash_item (struct hash *hp, HASHDATA **data, int enter) |
void | hash_done (struct hash *hp) |
#define hash_check | ( | hp, | |||
data | ) | hash_item( hp, data, 0 ) |
#define hash_enter | ( | hp, | |||
data | ) | !hash_item( hp, data, 1 ) |
void hash_done | ( | struct hash * | hp | ) |
free a hash table, given its handle.
struct hash* hash_init | ( | int | datalen, | |
const char * | name | |||
) |
initialize a hash table, returning a handle
[in] | datalen | Length of records in this table |
[in] | name | Name printed by hash_stat. |