6 * ciniparser - easily parse and manipulate ini style configuration files
8 * A dictionary object is allocated which contains string keys and values.
9 * Functions to read string values return statically allocated objects,
10 * there is no need to free them (also, do not modify them directly).
12 * Additional functions to manipulate or unset objects in the dictionary
13 * can be found in the test suite.
18 * #include <stdbool.h>
19 * #include <ccan/ciniparser/ciniparser.h>
21 * #define CONFIG_FILE "/etc/config.ini"
23 * int main(int argc, char *argv[])
31 * d = ciniparser_load(CONFIG_FILE);
35 * val1 = ciniparser_getstring(d, "daemon:pidfile", NULL);
36 * val2 = ciniparser_getboolean(d, "daemon:debug", false);
37 * val3 = ciniparser_getdouble(d, "daemon:maxload", 3.5);
38 * val4 = ciniparser_getint(d, "daemon:maxchild", 5);
40 * ciniparser_freedict(d);
47 int main(int argc, char *argv[])
52 if (strcmp(argv[1], "depends") == 0) {