Definition at line 72 of file table.c.
73{
74 int i;
76 assert(table);
77 assert(key);
78 i = (*table->
hash)(key) % table->
size;
80 if ((*table->
cmp)(key,
p->key) == 0)
break;
81 return p ?
p->value : NULL;
82}
unsigned(* hash)(const void *key)
int(* cmp)(const void *x, const void *y)
struct T::binding ** buckets
References T::buckets, T::cmp, T::hash, p, T::size, and T.
Referenced by exponent_table_get().