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: 5 months ago
JSON representation
Simple C Config Parser is simple to use generic reader of key value combinations
- Host: GitHub
- URL: https://github.com/tpanj/sccp
- Owner: tpanj
- License: mit
- Created: 2018-08-27T22:11:31.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T21:15:25.000Z (almost 8 years ago)
- Last Synced: 2025-06-17T15:51:53.247Z (about 1 year ago)
- Topics: c, c89, config, cross-platform, ini, toml
- Language: C
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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