![]() ![]() Pointed to by htab must be zeroed before the first call to The hcreate_r() function performs the same task as hcreate(), butįor the table described by the structure *htab. Implementation may adjust this value upward to improve the Maximum cannot be changed later, so choose it wisely.) The Nel specifies the maximum number of entries in the table. (i.e., do not attempt to directly access or modify the fields inįirst a hash table must be created using hcreate(). The programmer should treat this structure as opaque To a structure that describes the table on which the function is Reentrant versions that allow a program to use more than one hash The three functions hcreate_r(), hsearch_r(), hdestroy_r() are Using these functions, only one hash table can be used at a time. The caller to create and manage a hash search table containingĮntries consisting of a key (a string) and associated data. The three functions hcreate(), hsearch(), and hdestroy() allow #include int hcreate_r(size_t nel, struct hsearch_data * htab ) void hdestroy_r(struct hsearch_data * htab ) int hsearch_r(ENTRY item, ACTION action, ENTRY ** retval, struct hsearch_data * htab ) DESCRIPTION top ![]() SYNOPSIS top #include int hcreate(size_t nel ) void hdestroy(void) ENTRY *hsearch(ENTRY item, ACTION action ) #define _GNU_SOURCE /* See feature_test_macros(7) */ Hcreate, hdestroy, hsearch, hcreate_r, hdestroy_r, hsearch_r. HSEARCH(3) Linux Programmer's Manual HSEARCH(3) NAME top ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |