tech-misc archive

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

Re: __attribute__((warn_unused_result)) for NetBSD?




15 sep 2008 kl. 00.43 skrev Thor Lancelot Simon:

On Sun, Sep 14, 2008 at 12:49:02PM +0300, Aleksey Cheusov wrote:

Why? IMO Not checking for return value of all these functions as well
as close fclose etc. is VERY dangerous.

Please, explain to me what exactly you intend to do to handle an error
return from close().

Potentially tell the consumer of the interface that the file is not what the consumer expects it too, what else ?

Love




Home | Main Index | Thread Index | Old Index