1. Introducing libConfuse in an existing program
Consider this simple program:
1 #include <stdio.h>
2
3 int main(void)
@@ -68,7 +67,7 @@ target = "Neighbour"
Thus, if no target
option was specified in the
configuration file, the hello program would have printed the
standard greeting "Hello, World".
- 1.1. Environment variables in values
+
1.1. Environment variables in values
What else can we do in the configuration file? We can set the value to an
environment variable:
@@ -82,4 +81,4 @@ target = ${USER:-User}
Now, if the USER environment variable is unset, the string "User" will be
used instead.
-
+