7word
INIGetHexWord(
char *Key, word DefaultValue, word MinValue, word 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++)
41 x = (word) strtoul(i + l, NULL, 16);
43 if(x < MinValue) x = MinValue;
44 if(x > MaxValue) x = MaxValue;
void INIFindStartEnd(char *, char **, char **, dword)
word INIGetHexWord(char *Key, word DefaultValue, word MinValue, word MaxValue)