On Mon, 15 Jul 2024 at 14:16, U.Mutlu wrote:
>
> The below test code demonstrates that sscanf fails
> to parse the string "" (ie. an empty string inside "") in line2 (fErr=1).
> Is this a bug?

This mailing list is for discussing the development of GCC, and sscanf
is not part of GCC. The behaviour you're seeing is not caused by GCC
(and is not a bug).

> Or is there maybe a workaround format string to be used with sscanf ?

If sscanf returns 1 it means it failed to scan the "%15[^"]" string,
so you could try again using "" in the pattern.

Reply via email to