1 2 3 4 5 6 7 8 9 10 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; };