DragonFly On-Line Manual Pages
ght_create(3) libghthash User Manual ght_create(3)
NAME
ght_create - create a new hash table
SYNOPSIS
#include <ght_hash_table.h>
ght_hash_table_t *ght_create(unsigned int i_size);
DESCRIPTION
Create a new hash table with the size (number of buckets) i_size and
return a pointer to it.
The number of buckets should be about as big as the number of elements
you wish to store in the table for good performance. The number of
buckets is rounded to the next higher power of two.
The hash table is created with ght_one_at_a_time_hash() as hash
function, automatic rehashing disabled, malloc() as the memory
allocator and no heuristics.
SEE ALSO
ght_insert(3), ght_get(3), ght_remove(3), ght_replace(3),
ght_finalize(3), ght_first(3), ght_next(3), ght_set_alloc(3),
ght_set_hash(3), ght_set_heuristics(3), ght_size(3), ght_table_size(3),
ght_rehash(3).
libghthash is fully documented with Doxygen (in
{prefix}/doc/libghthash/html/).
AUTHOR
This manual page was created by Simon Kagstrom <ska@bth.se>.
libghthash 2005-07-21 ght_create(3)