10 char *i = NULL, *j = NULL;
12 char *OldBuffer, *NewBuffer;
21 strncpy(TempKey, Key,
sizeof(TempKey) - 2);
22 TempKey[
sizeof(TempKey) - 2] =
'\0';
28 l = strlen(
INIBuffer) + strlen(TempKey) + strlen(Value) + 3;
35 if(l > BS || !(
INIBuffer = TAP_MemAlloc(BS)))
46 TAP_MemFree(OldBuffer);
55 l = strlen(
INIBuffer) - (j - i) + strlen(TempKey) + strlen(Value) + 1;
62 if(l > BS || !(NewBuffer = TAP_MemAlloc(BS)))
68 memset(NewBuffer, 0, BS);
70 strcat(NewBuffer, TempKey);
71 strcat(NewBuffer, Value);
72 strcat(NewBuffer, j + 1);
void INIFindStartEnd(char *, char **, char **, dword)
void INISetString(char *Key, char *Value)