diff options
author | pommicket <pommicket@gmail.com> | 2025-09-12 12:43:18 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-12 12:43:41 -0400 |
commit | 9865b70c855500ea3cae76fb8c9986bdf6f249ca (patch) | |
tree | 244af1e93164d5aeea9c7a141ac4b5231d3882c6 /examples | |
parent | a835e738761238b891847c8303592b504018f017 (diff) |
Implement pom_conf_next_item
Diffstat (limited to 'examples')
-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); } |