Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#ifndef _hashtable_h_
#define _hashtable_h_ 1
typedef struct hashtable_list_item {
char* key;
char* value;
struct hashtable_list_item* next;
} hashtable_list_item;
typedef struct {
hashtable_list_item** array;
unsigned int size;
} hashtable;
hashtable* hashtable_create(unsigned int size);
void hashtable_insert(hashtable *ht, char* key, char* value);
char* hashtable_search(hashtable *ht, char* key);
void hashtable_delete(hashtable *ht, char* key);
#endif // _hashtable_h_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment