|
qLibc
|
INI-style configuration file parser. More...
Go to the source code of this file.
Macros | |
| #define | _INCLUDE_DIRECTIVE "@INCLUDE " |
Functions | |
| qlisttbl_t * | qconfig_parse_file (qlisttbl_t *tbl, const char *filepath, char sepchar) |
| Load and parse a configuration file. | |
| qlisttbl_t * | qconfig_parse_str (qlisttbl_t *tbl, const char *str, char sepchar) |
| Parse a configuration string. | |
INI-style configuration file parser.
Definition in file qconfig.c.
| qlisttbl_t * qconfig_parse_file | ( | qlisttbl_t * | tbl, |
| const char * | filepath, | ||
| char | sepchar ) |
Load and parse a configuration file.
| tbl | qlisttbl_t pointer. If NULL, a new table is created. |
| filepath | path to the configuration file. |
| sepchar | separator used to split keys and values. |
| qlisttbl_t * qconfig_parse_str | ( | qlisttbl_t * | tbl, |
| const char * | str, | ||
| char | sepchar ) |
Parse a configuration string.
| tbl | qlisttbl_t pointer. If NULL, a new table is created. |
| str | string that contains key/value pairs. |
| sepchar | separator used to split keys and values. |