Config_ini

This commit is contained in:
Imbus 2025-08-27 00:12:43 +02:00
parent cfb2aaabef
commit 2e1261f695
6 changed files with 140 additions and 0 deletions

13
config_ini/conf.h Normal file
View file

@ -0,0 +1,13 @@
typedef struct ConfigEntry {
char *key;
char *value;
struct ConfigEntry *next;
} ConfigEntry;
typedef struct {
ConfigEntry *head;
} Config;
Config *config_load(const char *filename);
const char *config_get(Config *cfg, const char *key);
void config_free(Config *cfg);