Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 8
Create a hash search table
#include <search.h>
int hcreate( size_t nel );
- nel
- An estimate of the maximum number of entries that the table will contain.
The algorithm might adjust this number upward in order
to obtain certain mathematically favorable circumstances.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The hcreate() function allocates space for the hash search
table.
You must call this function before using
hsearch().
The hsearch() and hcreate() functions use
malloc()
to allocate space.
Only one hash search table may be active at any given time.
You can destroy the table by calling
hdestroy().
0 if there isn't enough space available to allocate the table.
See hsearch().
POSIX 1003.1 XSI
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
bsearch(),
hdestroy(),
hsearch(),
malloc()
The Art of Computer Programming, Volume 3, Sorting and
Searching by Donald E. Knuth, published by Addison-Wesley
Publishing Company, 1973.
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 131
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/h/hcreate.html on line 131