Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
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	 func-
       tion,  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_final-
       ize(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	 {pre-
       fix}/doc/libghthash/html/).

AUTHOR
       This manual page	was created by Simon Kagstrom <ska@bth.se>.

libghthash			  2005-07-21			 ght_create(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | AUTHOR

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=ght_create&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help