#include #include #include "pom.h" int main(int argc, char **argv) { pom_error *error; pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error); if (!conf) { pom_error_print(error); 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); }