Created code for key_value_pair

This commit is contained in:
t
2025-01-27 21:02:39 +01:00
parent 8174f6de96
commit 1ee553a410
5 changed files with 162 additions and 0 deletions
+20
View File
@@ -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