diff options
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r-- | examples/read_conf.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c index c4cabfc..1bff840 100644 --- a/examples/read_conf.c +++ b/examples/read_conf.c @@ -6,15 +6,16 @@ int main(int argc, char **argv) { pom_error *error; + //pom_set_error_language("fr"); pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error); if (!conf) { pom_error_print(error); free(error); return EXIT_FAILURE; } - uint64_t value; - const char *s = pom_conf_get_uint(conf, "number.best", &value); - printf("%" PRIu64 "\n", value); + int64_t value; + const char *s = pom_conf_get_int(conf, "number.best", &value); + printf("%" PRId64 "\n", value); if (s) printf(" -> %s\n",s); pom_conf_print(conf); pom_conf_free(conf); |