From f652c23fbc61dec9db48c6e745edca5a12b655bb Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Mon, 6 Jul 2020 15:36:34 -0400 Subject: Add structs/typedefs for maps --- collections/map/map.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 collections/map/map.c (limited to 'collections/map/map.c') 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 +#include + +struct map_node { + void *key, *val; + cmp_func cmp; + + struct map_node *left, *right, *parent; +}; -- cgit v1.1