diff options
author | pommicket <pommicket@gmail.com> | 2025-09-12 15:40:56 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-12 15:41:24 -0400 |
commit | ca21dcb53e41919fc255ad736986aa6ff1d5bd85 (patch) | |
tree | 08b0a41be6dacdbd9d1cc22e4931d150ef78e2ce /examples | |
parent | 802f11352a1f8ab25a222111d2ba254ed9f7113f (diff) |
Implement sections
Diffstat (limited to 'examples')
-rw-r--r-- | examples/read_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c index 78e4847..f153c15 100644 --- a/examples/read_conf.c +++ b/examples/read_conf.c @@ -21,8 +21,8 @@ int main(int argc, char **argv) { } 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); + while ((item = pom_conf_next_item(pom_conf_section(conf, "number"), &iter))) { + printf("Number: %s, Value: %s\n", item->key, item->value); } pom_unread_key_iter *unread = NULL; const char *key; |