diff options
author | pommicket <pommicket@gmail.com> | 2025-09-11 19:17:23 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-11 19:17:28 -0400 |
commit | aab7700e2bba9216a8343e8e4e0cd0096026ba1a (patch) | |
tree | b98c5cfc0589335c7aa81fc5bdafb8ca3564668b /examples/read_conf.c | |
parent | ec9cf4ef9b4ff2a16172e72adf5fca2a94ba3009 (diff) |
Reading lines
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r-- | examples/read_conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c index da23534..b18be3a 100644 --- a/examples/read_conf.c +++ b/examples/read_conf.c @@ -2,9 +2,9 @@ #include "pom.h" -int main(void) { +int main(int argc, char **argv) { pom_error *error; - pom_conf *conf = pom_load_path("foo", &error); + pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error); if (!conf) { pom_error_print(error); free(error); |