feat: add int map implementation
This commit is contained in:
23
map.h
Normal file
23
map.h
Normal 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
|
||||
Reference in New Issue
Block a user