--- embedaddon/confuse/doc/tutorial-html/ar01s04.html 2017/01/24 14:48:55 1.1.1.1 +++ embedaddon/confuse/doc/tutorial-html/ar01s04.html 2021/03/17 00:49:17 1.1.1.2 @@ -1,6 +1,5 @@ - - -4. Using sections

4. Using sections

+ +4. Using sections

4. Using sections

So far, we have only use a flat configuration file. libConfuse can also handle sections to build a hierarchy of options. Sections can be used to group options in logical blocks, and those blocks can (optionally) be specified multiple @@ -98,7 +97,7 @@ greeting Bye in the configuration file. First it will find the "Hello" section. It prints the title of the section, "Hello", retrieved with cfg_title(). Then the targets are printed just - as in the previous exemples, but this time the values are retrieved + as in the previous examples, but this time the values are retrieved from the cfg_greet section. Next, the section titled "Bye" is found, and the values are retrieved from that section.

@@ -108,4 +107,4 @@ $ ./listing5 Hello, Life, Universe, Everything! Bye, Adams! $ -

+
\ No newline at end of file