Definition at line 134 of file table.c.
135{
136 int i;
137 struct binding **pp;
138 assert(table);
139 assert(key);
141 i = (*table->
hash)(key) % table->
size;
142 for (pp = &table->
buckets[i]; *pp; pp = &(*pp)->
link)
143 if ((*table->
cmp)(key, (*pp)->key) == 0)
144 {
145 struct binding *
p = *pp;
146 void *value =
p->value;
150 return value;
151 }
152 return NULL;
153}
unsigned(* hash)(const void *key)
int(* cmp)(const void *x, const void *y)
struct T::binding ** buckets
References T::buckets, T::cmp, FREE, T::hash, T::length, T::binding::link, p, T::size, T, and T::timestamp.