libConfuse

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. libConfuse was called libcfg before, but its name was changed to not confuse itself with other similar libraries.

Please send bug reports or questions to confuse-devel@nongnu.org. You might also want to check out the project page at Savannah.

examples

Example configuration files:

download

The source code is distributed in two files: a .tar.gz with source and makefiles, and a .zip file also including build files for windows.

The latest development sources can now (as of 2010/02/21) be found in the Savannah GIT repository. It can be browsed here (note that cgit's tarballs are not the same as release tarballs!). To download the sources through anonymous GIT access, do the following:

git clone git://git.sv.gnu.org/confuse.git

More information about the git repository is here. CVS access is deprecated but information is nonetheless available here.

documentation

The following documentation is published here and also distributed with the source.

contact

Places to ask questions, answer questions of other users, submit bug reports, and send patches.

news

Bots should send email to notham@bzero.se to get blacklisted.