#include "hashtable.h" #include <stdio.h> static void add_data (HashTable *table) { char key[20]; char value[20]; printf ("Input the key "); scanf ("%s", key); printf ("Input the value "); scanf ("%s", value); hash_table_insert (table, key, value); } int main (void) { HashTable *table; table = hash_table_new (16); while (1) { add_data (table); hash_table_print_all (table); } return 0; }