libConfuse is a configuration file parser library, licensed under
the terms of the ISC license, and written in C. It supports
sections and (lists of) values (strings, integers, floats,
booleans or other sections), as well as some other features (such
as single/double-quoted strings, environment variable expansion,
functions and nested include statements). It makes it very
easy to add configuration file capability to a program using
a simple API.
The goal of libConfuse is not to be the configuration file parser
library with a gazillion of features. Instead, it aims to be
easy to use and quick to integrate with your code.
cfg_defvalue_t Data structure holding the default value given by the initialization macros. cfg_opt_t Data structure holding information about an option. The value(s) are stored as an array of fundamental values (strings, numbers, etc). Examples: ftpconf.c... cfg_simple_t Data structure holding the pointer to a user provided variable defined with CFG_SIMPLE_*. cfg_t Data structure holding information about a 'section'. Sections can be nested. A section has a list of options (strings, numbers, booleans or other sections)... cfg_value_t Data structure holding the value of a fundamental option value. confuse.h A configuration file parser library.