5bool INIGetString(
char *Key,
char *Value,
char *DefaultValue, dword MaxLength)
9 char *i = NULL, *j = NULL;
13 if(!Key || !Value || !DefaultValue || !MaxLength)
19 strncpy(TempKey, Key,
sizeof(TempKey) - 2);
20 TempKey[
sizeof(TempKey) - 2] =
'\0';
26 if(!i || !j || (j < i + l))
28 strncpy(Value, DefaultValue, MaxLength);
29 Value[MaxLength - 1] = 0;
33 strncpy(Value, i + l, j - i - l + 1 );
34 Value[j - i - l + 1] = 0;
void INIFindStartEnd(char *, char **, char **, dword)
bool INIGetString(char *Key, char *Value, char *DefaultValue, dword MaxLength)