7 #define LOADFACTOR 0.75
10 typedef struct hashlistnode {
13 struct hashlistnode *next;
16 typedef struct hashtable {
17 lhashlistnode_t *table; // points to beginning of hash table
19 unsigned int numelements;
23 unsigned int lhashCreate(unsigned int size, float loadfactor);// returns 0 for success and 0 for failure
24 unsigned int lhashFunction(unsigned int oid); // returns 0 for success and 0 for failure
25 unsigned int lhashInsert(unsigned int oid, unsigned int mid); // returns 0 for success and 0 for failure
26 unsigned int lhashSearch(unsigned int oid); //returns mid, 0 if not found
27 unsigned int lhashRemove(unsigned int oid); //returns 0 if not success
28 unsigned int lhashResize(unsigned int newsize); // returns 0 for success and 0 for failure