An open API service indexing awesome lists of open source software.

https://github.com/nowisesys/libinifile

C/C++ library for parsing ini-files
https://github.com/nowisesys/libinifile

c-library cpp-library ini-parser

Last synced: about 1 month ago
JSON representation

C/C++ library for parsing ini-files

Awesome Lists containing this project

README

        

C/C++ library with syntax validator for parsing ini-style configuration files.

** INTRODUCTION:

This file format is commonly used by many application, among them Samba
and MySQL. The parsing can be customized by calling inifile_set_option().
Each entry in the file is retrieved as an triple with current section, the
keyword and an optional value.

** EXAMPLE:

An example of the ini-file format:

[section 1]

key1 = val1
key2 = val2

[section 2]

key3 = val3

The above content should generate this result:

ent( sect => section 1, key => key1, val => val1)
ent( sect => section 1, key => key2, val => val2)
ent( sect => section 2, key => key3, val => val3)

Empty and commented lines are ignored. Currently the hash character ('#')
is recognized as comment begin and everthing after it is ignored.

** INSTALL:

See installation instructions for different platforms inside the
docs directory.

Anders Lövgren, 2006-08-29