diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-07-06 15:36:34 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-07-08 10:56:29 -0400 |
commit | f652c23fbc61dec9db48c6e745edca5a12b655bb (patch) | |
tree | 55041979d41e9a1f2b501d2db2fa22cb58b0c7fc /collections/map/map.c | |
parent | 7f96fdd283c7e6ce7245585d75795a69871e0635 (diff) |
Add structs/typedefs for maps
Diffstat (limited to 'collections/map/map.c')
-rw-r--r-- | collections/map/map.c | 11 |
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; +}; |