From 615618bb2ad91be24fb74738db0b2f290ccc50a3 Mon Sep 17 00:00:00 2001 From: Danny van Kooten Date: Wed, 11 Mar 2020 21:11:29 +0100 Subject: start evaluation --- hashmap.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 hashmap.h (limited to 'hashmap.h') diff --git a/hashmap.h b/hashmap.h new file mode 100644 index 0000000..a37d3d6 --- /dev/null +++ b/hashmap.h @@ -0,0 +1,10 @@ + +struct hashmap { + struct node *buckets[26]; +}; + +void hashmap_insert(struct hashmap *hm, char *key, void *value); +void *hashmap_get(struct hashmap *hm, char *key); +void hashmap_remove(char *key); +struct hashmap *hashmap_new(); +void hashmap_free(struct hashmap *hm); \ No newline at end of file -- cgit v1.2.3