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
- Host: GitHub
- URL: https://github.com/nowisesys/libinifile
- Owner: nowisesys
- License: gpl-2.0
- Created: 2019-01-28T22:23:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-28T23:37:44.000Z (over 6 years ago)
- Last Synced: 2025-02-16T08:27:30.358Z (3 months ago)
- Topics: c-library, cpp-library, ini-parser
- Language: C
- Size: 774 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
- Authors: AUTHORS
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 = val3The 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