/* * File: hashtable.h * Author: Eduardo Santos n 92458 * Description: Contem as funcoes da hashtable utilizada. */ #ifndef HASHTABLE_H #define HASHTABLE_H #include #include #include #define HASHTABLE_SIZE 3 typedef struct entry{ char * key; void * data; struct entry * next; } entry; typedef struct hashtable{ entry ** entries; } hashtable; hashtable * hashtableCreate(); void hashtableAdd(hashtable * hashtable, char * key, void * data); void * hashtableGet(hashtable * hashtable, char * key); void hashtableDel(hashtable * hashtable, char * key); #endif /* HASHTABLE_H */