Re: __attribute__((warn_unused_result)) for NetBSD?

Love Hörnquist Åstrand <[email protected]>
Newsgroups gmane.os.netbsd.devel.general
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.