Seems finished

This commit is contained in:
Ano-sys
2025-01-29 20:17:35 +01:00
parent e265ffa526
commit c0d2ffffd3
14 changed files with 184 additions and 122 deletions
+5 -1
View File
@@ -1,6 +1,7 @@
#ifndef KEY_VALUE_PAIR_H
#define KEY_VALUE_PAIR_H
#include <stdbool.h>
#include <stddef.h>
// Structures
@@ -12,6 +13,9 @@ typedef struct key_value_pair{
} key_value_pair;
// Functions
char *key_value_pair_list_to_string(key_value_pair **head);
key_value_pair *init_key_value_pair(const char *key, const char *value);
void free_key_value_pair(key_value_pair **kv);
void free_key_value_pairs(key_value_pair **head, key_value_pair **tail);
@@ -19,6 +23,6 @@ void free_key_value_pairs(key_value_pair **head, key_value_pair **tail);
int add_key_value_pair(key_value_pair *kv, key_value_pair **head, key_value_pair **tail);
void remove_key_value_pair(key_value_pair *kv, key_value_pair **head, key_value_pair **tail);
void extract_key_value_pairs(char *red_str, key_value_pair **head, key_value_pair **tail);
void extract_key_value_pairs(char *red_str, key_value_pair **head, key_value_pair **tail, bool doReduce);
#endif //KEY_VALUE_PAIR_H