Hi.
The question is about the NUL character ('\0') with
string conversions ('%s', '%[^'). Now the Avr-libc's
scanf() considers the NUL as a normal character: it is
placed into output buffer and a conversion continues.
The GNU's libc does the same.
Is it a good behavior? What about to stop conversion after
the NUL is readed?
Any links?
For '%[' (without '^') conversion it is not a problem,
as '\0' is in block-list by default.
Note, in case of '%[^' conversion it is no way to place
the NUL into block-list (it would be the end of format
string).
Thanks,
Dmitry.
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev