19 void (*destroy)(
void *data);
64 int nhash_init(
NHash *htbl,
int buckets,
65 void (*destroy)(
void*data));
82 void nhash_destroy(
NHash *htbl);
102 int nhash_insert(
NHash *htbl,
const void *val,
size_t nk, ...);
119 void* nhash_remove(
NHash *htbl,
size_t nk, ...);
122 void* nhash_pop(
NHash *htbl);
136 void nhash_grow(
NHash *htbl);
148 #define nhash_size(htbl) ((htbl)->size)
170 #define nhash_loadfactor(htbl) (((float)((htbl)->size)) / ((htbl)->buckets))
Interface for the linked list implementation.
structure for linked lists.