This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: use of %n in genmodes.c causes trouble on Vista


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....




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]