libconfig

C/C++ library for reading and writing configuration files

brewmacoslinux
Try with needOr install directly
Source

About

Configuration file processing library

Commands

libconfig

Examples

Parse and validate a configuration file programmatically$ gcc -o myapp myapp.c -lconfig
Link against libconfig in a C++ project$ g++ -o myapp myapp.cpp -lconfig++
Check libconfig installation and version$ pkg-config --modversion libconfig