diff options
-rw-r--r-- | collections/map/map.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/collections/map/map.c b/collections/map/map.c index beb8f7f..1b6cbaa 100644 --- a/collections/map/map.c +++ b/collections/map/map.c @@ -26,6 +26,16 @@ cmp_func cmp; return tmp; } +map* map_new_from_parent(root) +map *root; +{ + map *tmp; + + tmp = map_new(root->cmp); + tmp->parent = root; + return tmp; +} + int map_size(root) map *root; { |