|
3 years ago | |
---|---|---|
.gitignore | 3 years ago | |
LICENSE | 3 years ago | |
Makefile | 3 years ago | |
README.md | 3 years ago | |
nini.c | 3 years ago | |
nini.h | 3 years ago | |
test.c | 3 years ago |
This parser aims to be the smallest possible while supporting a sufficient subset of the INI format. The parser is meant for use in embedded applications.
When compiled for a bare metal Cortex-M0, the whole parser fits in 336 bytes of Flash and 30 (+buffers) bytes of RAM.
void *
for maintaining user context, passed to the callbackAny whitespace, except inside a value, is discarded.
[section]
]
key = value
=
\r
or \n
# comment ...
\r
or \n
See the file test.c
for an example of the most basic usage; see the header file for more details on the API.