ini.h

./Crimson2/src/ini.h · 670 B

From the archive crimson2.tar.gz

Download the archive   « Back to the archive contents

/* more or less standard windows-type ini file, sans groups:
setting=value
  setting=value ; your comment here
; commented line
# commented line
setting one=blah ; invalid will be interpreted as setting=one

As with windows an INI file > 64K will cause a crash....
white space is mostly ignored
# and ; are both reserved for comments
dont use lines > 256 chars in length, as weird stuff occurs...
*/

/* result should be >= 256 char buffer */
extern void  INIRead(BYTE *fileName, BYTE *setting, BYTE *defResult, BYTE *result);
extern LWORD INILWordRead(BYTE *fileName, BYTE *setting, LWORD defResult);
extern void  INIWrite(BYTE *fileName, BYTE *setting, BYTE *result);

Site Stats

Snippets: 1791
Codebases: 571