[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

fwriteerror() interface

From: Ben Pfaff
Subject: fwriteerror() interface
Date: Mon, 27 Feb 2006 14:22:26 -0800
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

I'm not sure I understand the fwriteerror() interface.  As I read
the function comment, fwriteerror() should always close the
stream provided to it (except in the case of stdout).  But the
implementation does not close the stream if an error was reported
on the stream.  Also, the test case provided does not make any
explicit call to fclose(), seeming to believe that fwriteerror()
always closes the stream.

Am I missing something, or is fwriteerror() missing an fclose()
in the case where ferror() returns true?
Ben Pfaff 
email: address@hidden
web: http://benpfaff.org

reply via email to

[Prev in Thread] Current Thread [Next in Thread]