Created code for key_value_pair
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef MAP_REDUCE_H
|
||||
#define MAP_REDUCE_H
|
||||
|
||||
// Constants
|
||||
|
||||
typedef struct key_value_pair{
|
||||
char *key;
|
||||
char value;
|
||||
struct key_value_pair *next;
|
||||
} key_value_pair;
|
||||
|
||||
static key_value_pair *head = NULL;
|
||||
|
||||
// Functions
|
||||
void init_key_value_pair(key_value_pair *kv, char *key, char *value);
|
||||
void free_key_value_pair(key_value_pair *kv);
|
||||
|
||||
void add_key_value_pair(key_value_pair *kv, char *key, char *value);
|
||||
|
||||
#endif //MAP_REDUCE_H
|
||||
Reference in New Issue
Block a user