Skip to content
/ ini Public

Configuration file (ini / conf) parser in pure C.

License

Notifications You must be signed in to change notification settings

vaclav2016/ini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Configuration file parser

Simple read-only config parser.

Support sections. Syntax like:

key = value
[section1]
key1 = value
key2 = value

[section2]
key3 = 3
key4 = value

Example

char strValue[256];
uint64_t intValue;

void *conf = ini_load("example.conf");

if (conf == NULL) {
      error(1, errno, "ini_load fail");
}

ini_getstr(conf, "section1", "key2", strValue, sizeof(strValue));
ini_getint(conf, "section2", "key3", &intValue);

ini_free(conf);

Build

$ cmake ./
$ make
$ sudo make install

Dependencies

None

Licensing

(c) 2016 Copyright Vaclav2016 https://github.com/vaclav2016, jabber id [email protected]

BOOST License, http://www.boost.org/LICENSE_1_0.txt

About

Configuration file (ini / conf) parser in pure C.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published