1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-01-28 22:52:54 +08:00

Add TravisCI badge at top of README

This commit is contained in:
Ben Hoyt 2019-04-08 20:58:26 -04:00
parent a0677e6a9f
commit 1d07c47906
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
# inih (INI Not Invented Here)
[![TravisCI Build](https://travis-ci.org/benhoyt/inih.svg)](https://travis-ci.org/benhoyt/inih)
**inih (INI Not Invented Here)** is a simple [.INI file](http://en.wikipedia.org/wiki/INI_file) parser written in C. It's only a couple of pages of code, and it was designed to be _small and simple_, so it's good for embedded systems. It's also more or less compatible with Python's [ConfigParser](http://docs.python.org/library/configparser.html) style of .INI files, including RFC 822-style multi-line syntax and `name: value` entries.
To use it, just give `ini_parse()` an INI file, and it will call a callback for every `name=value` pair parsed, giving you strings for the section, name, and value. It's done this way ("SAX style") because it works well on low-memory embedded systems, but also because it makes for a KISS implementation.

View File

@ -1,4 +1,4 @@
TSTno_file.ini: e=-1 user=0
no_file.ini: e=-1 user=0
... [section1]
... one=This is a test;
... two=1234;