-
Notifications
You must be signed in to change notification settings - Fork 0
/
ght_create.3
46 lines (35 loc) · 1.11 KB
/
ght_create.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
.TH ght_create 3 "2005-07-21" "libghthash" "libghthash User Manual"
.SH NAME
ght_create \- create a new hash table
.SH SYNOPSIS
.B #include <ght_hash_table.h>
.BI "ght_hash_table_t *ght_create(unsigned int " i_size ");"
.SH DESCRIPTION
Create a new hash table with the size (number of buckets)
.I 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
.I ght_one_at_a_time_hash()
as hash function, automatic rehashing disabled,
.I malloc()
as the memory allocator and no heuristics.
.SH SEE ALSO
.BR ght_insert (3),
.BR ght_get (3),
.BR ght_remove (3),
.BR ght_replace (3),
.BR ght_finalize (3),
.BR ght_first (3),
.BR ght_next (3),
.BR ght_set_alloc (3),
.BR ght_set_hash (3),
.BR ght_set_heuristics (3),
.BR ght_size (3),
.BR ght_table_size (3),
.BR ght_rehash (3).
libghthash is fully documented with Doxygen (in {prefix}/doc/libghthash/html/).
.SH AUTHOR
This manual page was created by Simon Kagstrom <[email protected]>.