aboutsummaryrefslogtreecommitdiff
path: root/src/hashmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hashmap.h')
-rw-r--r--src/hashmap.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/hashmap.h b/src/hashmap.h
new file mode 100644
index 0000000..a37d3d6
--- /dev/null
+++ b/src/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