summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/conf.pom4
-rw-r--r--examples/read_conf.c7
2 files changed, 3 insertions, 8 deletions
diff --git a/examples/conf.pom b/examples/conf.pom
index 0edc83f..ed37ed9 100644
--- a/examples/conf.pom
+++ b/examples/conf.pom
@@ -1,7 +1,7 @@
-[number]
+[number]p
one = 1
two = 2x"\?
-three = "3
+three j= "3
is
the
best"
diff --git a/examples/read_conf.c b/examples/read_conf.c
index 54a1e86..18802e3 100644
--- a/examples/read_conf.c
+++ b/examples/read_conf.c
@@ -8,12 +8,7 @@ int main(int argc, char **argv) {
pom_error *error;
pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error);
if (!conf) {
- char *string = pom_error_to_string(error);
- for (char *s=string; *s; s++)
- if (*s >= 'a' && *s <= 'z')
- *s += 'A' - 'a';
- printf("%s\n",string);
- free(string);
+ pom_error_print(error);
free(error);
return EXIT_FAILURE;
}