use of %n in genmodes.c causes trouble on Vista
Simon Brenner
olsner@gmail.com
Wed Jun 6 11:36:00 GMT 2007
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.
Oh, and I am sure the reality of my Operating System is very close to 100% ;-)
// Simon
On 6/6/07, Dave Korn <dave.korn@artimi.com> wrote:
> On 06 June 2007 12:04, Simon Brenner wrote:
>
> > According to my manpage, printf returns 0 on success, 1 on failure. No
> > mention of the number of characters written.
>
> Well, maybe you should ...
>
> > use a Real Operating System
>
> ....<g>! What man page exactly are you referring to?
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
More information about the Gcc
mailing list