First commit

This commit is contained in:
Steffen Lange 2018-04-08 21:34:42 +02:00
commit 0a28bac78a
37 changed files with 1963 additions and 0 deletions

18
map.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef _MAP_H_
#define _MAP_H_
#include <stdlib.h>
#include <string.h>
struct map_t {
char *key;
char *value;
struct map_t *next;
};
struct map_t * map_create();
void map_free(struct map_t *map);
char * map_get(struct map_t *map, const char *key);
void map_set(struct map_t *map, const char *key, const char *val);
#endif