aboutsummaryrefslogtreecommitdiff
path: root/collections/map/map.h
blob: 11a1cebba823e63a867813a5b19dd66feb4cafc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef MAP_H
#define MAP_H

typedef struct map_node map;
typedef int (*cmp_func)(void*, void*);

/*constructors*/
map* map_new(cmp_func);

/*management*/
int map_size(map*);

/*memory*/
void map_clear(map*);
void map_free(map*);
#endif