Added basics for config file and fixed makefile

This commit is contained in:
elvis
2022-03-11 11:57:52 +01:00
parent d0a4e4411e
commit 37b9940132
6 changed files with 308 additions and 4 deletions

20
lib/ini/ini.h Normal file
View File

@ -0,0 +1,20 @@
/**
* Copyright (c) 2016 rxi
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the MIT license. See `ini.c` for details.
*/
#ifndef INI_H
#define INI_H
#define INI_VERSION "0.1.1"
typedef struct ini_t ini_t;
ini_t* ini_load(const char *filename);
void ini_free(ini_t *ini);
const char* ini_get(ini_t *ini, const char *section, const char *key);
int ini_sget(ini_t *ini, const char *section, const char *key, const char *scanfmt, void *dst);
#endif