#define HASH_SIZE 100
typedef struct prehashlistnode {
- unsigned int key;
- void *val; //this can be cast to another type or used to point to a larger structure
- struct prehashlistnode *next;
+ unsigned int key;
+ void *val; //this can be cast to another type or used to point to a larger structure
+ struct prehashlistnode *next;
} prehashlistnode_t;
struct objstr;
typedef struct prehashtable {
- prehashlistnode_t *table; // points to beginning of hash table
+ prehashlistnode_t *table; // points to beginning of hash table
unsigned int size;
unsigned int numelements;
float loadfactor;