Mail Archives: djgpp/1997/02/10/21:25:06
On 9 Feb 1997 14:49:39 GMT, nxk3 AT dante DOT student DOT cwru DOT edu (Natarajan
Krishnaswami) wrote:
>I know it's tacky to follow up to my own post, but I just looked at the
>libc.inf description of fprintf's return value--it says only that it returns
>the number of characters written.
>
>Perhaps an error in the documentation?
More of an ommision...
As far as I tested it, it complies with the ANSI C specification, i.e.
returning the number of items processed, or EOF on file I/O error.
Maybe the docs should be extended in this way... It's certainly a
useful fact, the EOF condition.
George Foot
- Raw text -