diff options
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r-- | examples/read_conf.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c new file mode 100644 index 0000000..da23534 --- /dev/null +++ b/examples/read_conf.c @@ -0,0 +1,13 @@ +#include <stdlib.h> + +#include "pom.h" + +int main(void) { + pom_error *error; + pom_conf *conf = pom_load_path("foo", &error); + if (!conf) { + pom_error_print(error); + free(error); + return EXIT_FAILURE; + } +} |