summaryrefslogtreecommitdiff
path: root/examples/read_conf.c
blob: b18be3a8cfbadc1c86b334016e554a09a8c85188 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdlib.h>

#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;
	}
}