aboutsummaryrefslogtreecommitdiff
path: root/include/hash_map.h
diff options
context:
space:
mode:
authorFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 10:29:33 +0200
committerFlavian Kaufmann <flavian@flaviankaufmann.ch>2025-05-20 10:29:33 +0200
commit3829a704150a06b2767d542b39179377a592da0f (patch)
tree316a1e01f3306d717739e6d73b25f5215c2cf8f0 /include/hash_map.h
parentcc383b7b2d89f05b724460b4d5cb385525911671 (diff)
downloadimp-3829a704150a06b2767d542b39179377a592da0f.tar.gz
imp-3829a704150a06b2767d542b39179377a592da0f.zip
folder structure
Diffstat (limited to 'include/hash_map.h')
-rw-r--r--include/hash_map.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hash_map.h b/include/hash_map.h
new file mode 100644
index 0000000..ad873f8
--- /dev/null
+++ b/include/hash_map.h
@@ -0,0 +1,12 @@
+#ifndef HASH_MAP_H
+#define HASH_MAP_H
+
+typedef void *hashmap_t;
+
+hashmap_t hashmap_create(void);
+void hashmap_insert(hashmap_t map, const char *key, int value);
+int *hashmap_get(hashmap_t map, const char *key);
+void hashmap_delete(hashmap_t map, const char *key);
+void hashmap_free(hashmap_t map);
+
+#endif \ No newline at end of file