aboutsummaryrefslogtreecommitdiff
path: root/collections/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'collections/map/map.c')
-rw-r--r--collections/map/map.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/collections/map/map.c b/collections/map/map.c
new file mode 100644
index 0000000..21af21c
--- /dev/null
+++ b/collections/map/map.c
@@ -0,0 +1,11 @@
+#include "map.h"
+
+#include <string.h>
+#include <stdio.h>
+
+struct map_node {
+ void *key, *val;
+ cmp_func cmp;
+
+ struct map_node *left, *right, *parent;
+};