Skip to content

gdinit/libconfigdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libconfigdemo

A Simple C Program Demonstrating libconfig Usage

Credits/Authors

Jan-Piet Mens This demo program has been written by: Jan-Piet Mens and originally published in an article linked below. I am copying the code here, along with author's name and URL just to increase discoverability to assist others to find/clone this demo code.

Prerequisites

Demo code requires the libconfig package of course - no other dependencies.

libconfig on MAC OS X with homebrew package manager

brew install libconfig

libconfig on NIX with autoconf compilation & installation from official source package

wget https://hyperrealm.github.io/libconfig/dist/libconfig-1.7.2.tar.gz
tar xfvz libconfig-1.7.2.tar.gz
cd libconfig-1.7.2
./configure
make
sudo make install

Compilation

Compiled & tested with:

clang -x c -std=c89 -pedantic-errors -Wall -Werror -Wextra -Wcomment -Wparentheses -Wformat-zero-length -lconfig libconfigdemo.c -o libconfigdemo

Contributing

Any pull requests (bugfix, improvement) are more than welcome!

License

GNU GPL v3 License - see the LICENSE file for details.

README.md Written with StackEdit.

About

A Simple C Program Demonstrating libconfig Usage

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages