4 typedef enum {CHAR, INT} keytype;
14 unsigned (*hashfunc)(void *key, int M);
15 int (*compfunc)(void *c1, void *c2);
16 void * (*dupefunc)(void *key);
20 void hashcreate(hashtable *table, keytype typ, int size);
21 void hashinsert(hashtable *table, void *key, void *val);
22 void * hashfind(hashtable *table, void *key);
23 void hashforeach(hashtable *table, void (*func)(void *, void *));
24 void hashempty(hashtable *table);
25 void hashdelete(hashtable *table, void *key);