feat: add int map implementation

This commit is contained in:
2023-12-08 04:00:29 +01:00
parent 14dc992bbc
commit b203c93f47
5 changed files with 189 additions and 2 deletions

23
map.h Normal file
View File

@@ -0,0 +1,23 @@
//
// Created by lennart on 12/8/23.
//
#include <stdbool.h>
#ifndef MAP_H
struct _Map;
typedef struct _Map Map;
Map* map_create();
void map_put(Map *map, int key, int value);
int map_get(Map *map, int key);
bool map_has(Map *map, int key);
void map_free(Map *map);
#define MAP_H
#endif //MAP_H