summaryrefslogtreecommitdiff
path: root/examples/read_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r--examples/read_conf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c
index 24fade0..be1f97a 100644
--- a/examples/read_conf.c
+++ b/examples/read_conf.c
@@ -13,10 +13,11 @@ int main(int argc, char **argv) {
free(error);
return EXIT_FAILURE;
}
- double value;
- const char *s = pom_conf_get_float_or_default(conf, "number.best", &value, 3.6);
- printf("%f\n", value);
- if (s) printf(" -> %s\n",s);
+ char **list = pom_conf_get_list(conf, "things");
+ for (size_t i = 0; list[i]; i++) {
+ printf("%s\n",list[i]);
+ }
+ free(list);
pom_conf_print(conf);
pom_conf_free(conf);
}