diff options
Diffstat (limited to 'vendors/ini.h')
-rw-r--r-- | vendors/ini.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendors/ini.h b/vendors/ini.h new file mode 100644 index 0000000..cd6af9f --- /dev/null +++ b/vendors/ini.h @@ -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 |