Re: [hackers] [sbase] Rewrite foldline() in fold(1) || FRIGN

From: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
Date: Tue, 17 Mar 2015 12:18:06 +0100

> If fwrite() fails with a short element count, will ferror() always be
> on true? I am not sure we can rely on this.
>
> And also if fwrite() fails is it guaranteed that it will continue to
> fail on all future calls?

Yes, it is. If an error is produced in a stream, the value of error
associated with the strem is kept until is cleared with a clearerr
call.

Regards,
Received on Tue Mar 17 2015 - 12:18:06 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 17 2015 - 12:24:09 CET