Skip to content

Instantly share code, notes, and snippets.

#include "hashtable.h"
#include <stdio.h>
int print_hashtable(HashTable *ht);
HashTable *ht_create(unsigned int size);
int ht_put(HashTable *hashtable, const char *key, const char *value);
unsigned int hash(const char *key, unsigned int size);
int main(void) {
HashTable *ht = ht_create(5);