[Bug c/32311] fprintf prints only a part of a string if the string has \x00
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Jun 12 17:40:00 GMT 2007
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-06-12 17:40 -------
This is correct behavior because strings are really char arrays terminated by
the null character (0 aka '\x00') so when you write "k\x00%f", you really have
a string that is only of length 1.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32311
More information about the Gcc-bugs
mailing list