diff options
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r-- | examples/read_conf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c index 091255c..ed33e21 100644 --- a/examples/read_conf.c +++ b/examples/read_conf.c @@ -11,4 +11,10 @@ int main(int argc, char **argv) { free(error); return EXIT_FAILURE; } + const pom_item *item; + pom_item_iter *iter = NULL; + while ((item = pom_conf_next_item(conf, &iter))) { + printf("Key: %s, Value: %s\n", item->key, item->value); + } + pom_conf_free(conf); } |