diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-11 21:11:29 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-11 21:11:29 +0100 |
commit | 615618bb2ad91be24fb74738db0b2f290ccc50a3 (patch) | |
tree | ac49e221d86a6ac32cedd6be3baaed523769674f /hashmap.h | |
parent | abe9d3b25be17ea0cb920e54322854bd1e2dd97f (diff) | |
download | unja-615618bb2ad91be24fb74738db0b2f290ccc50a3.tar.gz unja-615618bb2ad91be24fb74738db0b2f290ccc50a3.zip |
start evaluation
Diffstat (limited to 'hashmap.h')
-rw-r--r-- | hashmap.h | 10 |
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 |