7long int INIGetInt(
char *Key,
long int DefaultValue,
long int MinValue,
long int MaxValue)
11 char *i = NULL, *j = NULL, *k;
21 strncpy(TempKey, Key,
sizeof(TempKey) - 2);
22 TempKey[
sizeof(TempKey) - 2] =
'\0';
28 if(!i || !j || (j < i + l))
34 for(k = i + l; k <= j; k++)
36 if(k == i + l && *k ==
'-' && k < j)
continue;
44 x = strtoul(i + l, NULL, 10);
46 if(x < MinValue) x = MinValue;
47 if(x > MaxValue) x = MaxValue;
void INIFindStartEnd(char *, char **, char **, dword)
long int INIGetInt(char *Key, long int DefaultValue, long int MinValue, long int MaxValue)