22.01.2017, 16:16
Quote:
I just ran through your include and noted few things that has to be changed:
- You shouldn't consider using format to copy strings, use memcpy or strcat instead. - INI_StripLine isn't defined in your include. |
2. Its there but not in form of a function, but inside one:
PHP Code:
if (string[len - 2] == '\r')
{
string[len - 2] = EOS;
}
else if (string[len - 1] == '\n')
{
string[len - 1] = EOS;
}