Bug report for fputs()

Corinna Vinschen vinschen@redhat.com
Wed Aug 15 15:53:00 GMT 2007


On Aug 15 09:59, Olivier Langlois wrote:
> I am not sure if the return value is defined by the ANSI C standard or
> if it is an implementation specific feature but all documentation
> about fputs() return value that I have seen say:
> 
> puts() and fputs() return a non-negative number on success, or EOF on
> error.
> 
> Newlib implementation of fputs() returns 0 on success. I have double
> checked this by looking in the source code and the header comment of
> function __sfvwrite_r which is used by fputs() seems to confirm this:

I don't understand your problem.  0 is non-negative, isn't it?


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat



More information about the Newlib mailing list