Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I\'m trying to find a simple C/C++ library to parse ini configuration files. It

ID: 656617 • Letter: I

Question

I'm trying to find a simple C/C++ library to parse ini configuration files.

It should:

have tests
be small (e.g. a .h file and a .cpp file)
be easy to use ("standard" ini file parsing is sufficient)
be cross-platform and cross-compiler
have error checking, possibly exception-less
be released under a permissive license (MIT/BSD is OK, GPL is not)

Python has ConfigParser, which is pretty straightforward. I like it.

I've checked Boost, and would like to avoid that (too many dependencies).

Any suggestions?

Explanation / Answer

The best I could find is inih. The C++ interface is minimal, but it works.