diff options
author | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 09:30:29 +0100 |
---|---|---|
committer | Danny van Kooten <dannyvankooten@users.noreply.github.com> | 2020-03-12 09:30:29 +0100 |
commit | cd70ca266bb212d6a32d2dd808c7708bb7be6f1f (patch) | |
tree | 5cfe0289c5a964520dee96691561f8844023ad50 /src/hashmap.h | |
parent | edf331cd2573726d8053ce76e3497203a12d99b9 (diff) | |
download | unja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.tar.gz unja-cd70ca266bb212d6a32d2dd808c7708bb7be6f1f.zip |
move files to src/ subdir
Diffstat (limited to 'src/hashmap.h')
-rw-r--r-- | src/hashmap.h | 10 |
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 |