summaryrefslogtreecommitdiff
path: root/examples/read_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r--examples/read_conf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c
index 1bff840..24fade0 100644
--- a/examples/read_conf.c
+++ b/examples/read_conf.c
@@ -13,9 +13,9 @@ int main(int argc, char **argv) {
free(error);
return EXIT_FAILURE;
}
- int64_t value;
- const char *s = pom_conf_get_int(conf, "number.best", &value);
- printf("%" PRId64 "\n", value);
+ double value;
+ const char *s = pom_conf_get_float_or_default(conf, "number.best", &value, 3.6);
+ printf("%f\n", value);
if (s) printf(" -> %s\n",s);
pom_conf_print(conf);
pom_conf_free(conf);