1
0
mirror of https://github.com/benhoyt/inih.git synced 2025-02-01 15:02:53 +08:00

As per issue 4, document more explicitly that ini_parse() doesn't stop on first error.

This commit is contained in:
benhoyt@gmail.com 2010-09-27 14:11:29 +00:00
parent d1939f4857
commit ee0443facf

4
ini.h
View File

@ -23,8 +23,8 @@ extern "C" {
pointer as well as section, name, and value (data only valid for duration
of handler call). Handler should return nonzero on success, zero on error.
Returns 0 on success, line number of first error on parse error, or -1 on
file open error.
Returns 0 on success, line number of first error on parse error (doesn't
stop on first error), or -1 on file open error.
*/
int ini_parse(const char* filename,
int (*handler)(void* user, const char* section,