hostile-takeover/inicrunch/ini.h
Scott Ludwig f2289c40ac Make data assets buildable on Linux
- Buildable on OSX and Linux now
- Fixed filename casing mismatches
- Inicrunch fixes, osx and linux versions, added Makefile

Note: gnu's cpp doesn't understand the -Wno-invalid-pp-token flag,
the absence of which causes ignorable preprocessing warnings on
strings with unmatched quotes.
2016-01-21 19:06:42 -08:00

32 lines
520 B
C

typedef unsigned int dword;
typedef unsigned char byte;
typedef unsigned short word;
#ifndef NULL
#define NULL 0
#endif
#include <stdarg.h>
struct IniProperty // prop
{
dword nchProp;
int cchProp;
word hashProp;
dword nchValue;
int cchValue;
};
struct IniSection // sec
{
dword nchSec;
int cchSec;
word hashSec;
int cprop;
IniProperty *pprop;
};
IniSection *LoadIniFile(char *pszFn, int *pcSections);
int IniScanf(char *pszBuff, char *pszFmt, ...);
int VIniScanf(char *pszBuff, char *pszFmt, va_list va);