blob: 8f290f6e80c7c95a0727cd494ac1c0448b5a3a87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include <stdlib.h>
#include <pom.h>
int main(void) {
pom_error *error;
pom_conf *conf = pom_load_path(NULL, "conf.pom", &error);
if (!conf) {
pom_error_print(error);
free(error);
return EXIT_FAILURE;
}
const char *indentation_type = pom_conf_get(conf, "indentation-type");
if (indentation_type)
printf("Indenting with %s\n", indentation_type);
else
printf("No indentation type set!\n");
pom_conf_free(conf);
}
|