Please don't top-post. Simon Brenner writes: > On 6/6/07, Dave Korn <[EMAIL PROTECTED]> 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?
> 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. Andrew.