On Tue, 17 Mar 2015 11:35:33 +0100
"Roberto E. Vargas Caballero" <k...@shike2.com> 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.

Cheers

FRIGN

-- 
FRIGN <d...@frign.de>

Reply via email to