I have the following statement to my code:
sscanf(line, "%[^=\n]=%[^\n]", tag, value);
which if I understand well it means scanf any character till a newline or an = character is encountered and store it to tag.
If that is correct how can I add the white space character to be excluded as well. Or is there any way to truncate the white space at the end of tag since line is:
name = Foo Bar\n\0
and with the aboce sscanf tag is
there is a space before the \0.
and value is