From cf427c05b05e0409cfdeb6bc30b69070dd1700c3 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Mon, 6 Jul 2020 15:39:08 -0400 Subject: Add constructor for maps --- collections/map/map.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'collections/map/map.h') diff --git a/collections/map/map.h b/collections/map/map.h index a760b45..8aad2f4 100644 --- a/collections/map/map.h +++ b/collections/map/map.h @@ -4,4 +4,7 @@ typedef struct map_node map; typedef int (*cmp_func)(void*, void*); +/*constructors*/ +map* map_new(cmp_func); + #endif -- cgit v1.1