code example /* Hash table example * ref: https://gist.github.com/tonious/1377667 */ #include #include #include #include typedef struct entry_s { char *key; char *value; struct entry_s *next;} entry_t; typedef struct hashtable_s { int size; struct entry_s **table;} hashtable_t; /* create hashtable */hashtable_t *ht_create(int size){ hashtable_t *hashtable = NULL; int i; if (size < 1 ) return NUL..