First commit
This commit is contained in:
commit
0a28bac78a
37 changed files with 1963 additions and 0 deletions
18
map.h
Normal file
18
map.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue