INI files

EsINIParse

bool EsINIParse(EsINIState *s);

Parses the next token from the INI buffer. Returns false at the end of the buffer. Fills the section, key, and value fields of the state.

EsINIPeek

bool EsINIPeek(EsINIState *s);

Like EsINIParse, but does not advance the position in the buffer.

EsINIFormat

size_t EsINIFormat(EsINIState *s, char *buffer, size_t bytes);

Formats the current section, key, and value into buffer. Returns the number of bytes written, or 0 if the buffer is full.

EsINIZeroTerminate

void EsINIZeroTerminate(EsINIState *s);

NUL-terminates the current section, key, and value. The buffer must be writable.