Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tpanj/sccp

Simple C Config Parser is simple to use generic reader of key value combinations
https://github.com/tpanj/sccp

c c89 config cross-platform ini toml

Last synced: 3 days ago
JSON representation

Simple C Config Parser is simple to use generic reader of key value combinations

Awesome Lists containing this project

README

        

# sccp
Simple C Config Parser is simple to use generic reader of key value combinations

# Features
* Minimal dependency and minimalistic.
* C89 compatible, cross platform to compile and use configs.
* Capable of parsing .conf file and return struct of value and key.
* Can parse even simple [TOML](https://en.wikipedia.org/wiki/TOML) (.ini) files and bash environment variables file.
* Comment aware
* If multiple keys are in file returns first occurrence found with value.

# Compiling
gcc main.c simple_config.c -std=c89 -pedantic -Wall -o sccp

Tested also with Visual Studio from 2008 up to 2017