This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: use of %n in genmodes.c causes trouble on Vista
Andrew Haley wrote:
> > In this case, it's the Mac OS X man page. Which I now see doesn't
> > say the same thing as POSIX. Which was just the point I was
> > trying to make you can't rely on the return value for determining
> > the number of characters written.
> Yes we can. gcc is written in ISO C, and ISO C says that the printf
> function returns the number of characters transmitted, or a negative
> value if an error occurred. We don't support bootstrapping gcc on
> non-ISO systems.
Documentation error? They've got the same man page for printf(1) and printf(3):
http://www.osxfaq.com/man/1/printf.ws
http://www.osxfaq.com/man/3/printf.ws
Rup.
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________