RepositoryC
libconfuse

libconfuse/libconfuse

Small configuration file parser library for C.

525stars
122forks
7issues
4views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: config-file

#1 Repository of the week

1
TINIX TRENDING·Topic: conf

#1 Repository of the week

1
TINIX TRENDING·Topic: config-parser

#1 Repository of the week

libConfuse

Badge GitHub Status Coverity Status

Introduction

libConfuse is a configuration file parser library written in C. It supports sections and (lists of) values, as well as other features such as single/double quoted strings, environment variable expansion, functions and nested include statements. Values can be strings, integers, floats, booleans, and sections.

The goal 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.

Please ensure you download a versioned archive from: https://github.com/libconfuse/libconfuse/releases/

Documentation

Examples

Build & Install

libConfuse employs the GNU configure and build system. To list available build options, start by unpacking the tarball:

tar xf confuse-3.2.2.tar.xz
cd confuse-3.2.2/
./configure --help

For most users the following commands configures, builds and installs the library to /usr/local/:

./configure && make -j9
sudo make install
sudo ldconfig

See the INSTALL file for the full installation instructions.

When checking out the code from GitHub, use ./autogen.sh to generate a configure script. This means you also need the following tools:

  • autoconf
  • automake
  • libtool
  • gettext
  • autopoint
  • flex

To build the documentation you also need the following tools:

  • doxygen
  • xmlto

This is an optional step, so you must build it explicitly from its directory:

cd doc/
make documentation

Origin & References

libConfuse was created by Martin Hedenfalk and released as open source software under the terms of the ISC license. It was previously called libcfg, but the name was changed to not confuse with other similar libraries. It is currently developed and maintained at GitHub. Please use the issue tracker to report bugs and feature requests.

Similar Projects

Discover other similar projects and AI models.

RepositoryC
raysan5/raylib

A simple and easy-to-use library to enjoy videogames programming

35.8k
Nov 25, 2026
RepositoryVim Script
vim/vim

The official Vim repository

41.4k
Nov 30, 2026
RepositoryC
Genymobile/scrcpy

Display and control your Android device

156.4k
Dec 1, 2026
RepositoryJava
apple/pkl

A configuration as code language with rich validation and tooling.

11.6k
Nov 24, 2026
RepositoryGo
TomWright/dasel

Unified querying, transformation, and modification of JSON, TOML, YAML, XML, INI, HCL, KDL and CSV.

8.1k
Nov 2, 2026
RepositoryGo
caarlos0/env

A simple, zero-dependencies library to parse environment variables into structs

6.4k
Nov 5, 2026
RepositoryPython
dynaconf/dynaconf

Configuration Management for Python ⚙

4.3k
Dec 1, 2026
RepositoryPHP
symfony/options-resolver

Provides an improved replacement for the array_replace PHP function

3.2k
Nov 6, 2026
RepositoryRust
rust-cli/config-rs

⚙️ Layered configuration system for Rust applications (with strong support for 12-factor applications).

3.2k
Nov 20, 2026