|
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 & parse configuration file. More... | |
| qlisttbl_t * | qconfig_parse_str (qlisttbl_t *tbl, const char *str, char sepchar) |
| Parse string. More... | |
INI-style configuration file parser.
Definition in file qconfig.c.
| qlisttbl_t* qconfig_parse_file | ( | qlisttbl_t * | tbl, |
| const char * | filepath, | ||
| char | sepchar | ||
| ) |
Load & parse configuration file.
| tbl | a pointer of qlisttbl_t. NULL will generate a new table. |
| filepath | configuration file path |
| sepchar | separater used in configuration file to divice key and value |
| qlisttbl_t* qconfig_parse_str | ( | qlisttbl_t * | tbl, |
| const char * | str, | ||
| char | sepchar | ||
| ) |
Parse string.
| tbl | a pointer of qlisttbl_t. NULL will generate a new table. |
| str | key, value pair strings |
| sepchar | separater used in configuration file to divice key and value |