aboutsummaryrefslogtreecommitdiff
path: root/hashmap.h
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-11 21:11:29 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-11 21:11:29 +0100
commit615618bb2ad91be24fb74738db0b2f290ccc50a3 (patch)
treeac49e221d86a6ac32cedd6be3baaed523769674f /hashmap.h
parentabe9d3b25be17ea0cb920e54322854bd1e2dd97f (diff)
downloadunja-615618bb2ad91be24fb74738db0b2f290ccc50a3.tar.gz
unja-615618bb2ad91be24fb74738db0b2f290ccc50a3.zip
start evaluation
Diffstat (limited to 'hashmap.h')
-rw-r--r--hashmap.h10
1 files changed, 10 insertions, 0 deletions
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