Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 3 of 3) sorted by relevance

/picolibc-latest/newlib/libc/search/
Dhcreate_r.c87 hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument
93 if (htab->htable != NULL) { in hcreate_r()
114 htab->htablesize = nel; in hcreate_r()
115 htab->htable = malloc(htab->htablesize * sizeof htab->htable[0]); in hcreate_r()
116 if (htab->htable == NULL) { in hcreate_r()
122 for (idx = 0; idx < htab->htablesize; idx++) in hcreate_r()
123 SLIST_INIT(&(htab->htable[idx])); in hcreate_r()
129 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument
135 if (htab->htable == NULL) in hdestroy_r()
139 for (idx = 0; idx < htab->htablesize; idx++) { in hdestroy_r()
[all …]
Dhcreate.c55 static struct hsearch_data htab; variable
60 return hcreate_r (nel, &htab); in hcreate()
66 hdestroy_r (&htab); in hdestroy()
75 hsearch_r (item, action, &retval, &htab); in hsearch()
Dhash.h115 typedef struct htab { /* Memory resident data structure */ struct