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

From: FRIGN <>
Date: Tue, 17 Mar 2015 11:38:54 +0100

On Tue, 17 Mar 2015 11:35:33 +0100
"Roberto E. Vargas Caballero" <> wrote:

Hey Roberto,

> It's a bit strange this fwrite, why don't you use putchar there?

Look again, we write 'off' bytes, not 1.

> and why you check the return value of fwrite, but not the return value of
> putchar or fputs?. I usually don't check the return value of write
> functions and at the end of the loop I do a call to ferror.

Calling ferror sounds like a nice idea. Let's take a look at it.



Received on Tue Mar 17 2015 - 11:38:54 CET

This archive was generated by hypermail 2.3.0 : Tue Mar 17 2015 - 11:48:09 CET