I have the following code, not written by myself, designed to parse out field/value pairs from an INI file:
char txt, tmp;
if (sscanf( txt, " \t%[^=]", tmp ) == 1)
// Do stuff with tmp
Now, being reasonably competent with what sscanf does, I find myself confused as to the explicit space and tab character in the input string. Moreoever, with 'txt' not having any spaces or tab characters in it, I am surprised that 'tmp' still holds "VALUE" after the call.
Can someone explain what the \t and space could be for here please?