mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 10:22:48 +01:00
29 lines
720 B
C
29 lines
720 B
C
/**
|
|
* 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"
|
|
|
|
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus) || defined(c_plusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
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);
|
|
|
|
#if defined(_LANGUAGE_C_PLUS_PLUS) || defined(__cplusplus) || defined(c_plusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|