[prev in list] [next in list] [prev in thread] [next in thread]
List: glibc-alpha
Subject: Re: fwrite on a closed file
From: Sripathi Kodi <sripathik () in ! ibm ! com>
Date: 2006-02-27 6:28:53
Message-ID: 44029955.6040008 () in ! ibm ! com
[Download RAW message or body]
Roland McGrath wrote:
>>When fwrite is called on a closed file, it is supposed to return zero as
>>the number of bytes written.
>
>
> I don't know where you got this idea. After you call fclose, any other use
> of that FILE * is undefined behavior.
Roland,
I had only concentrated on what specs say about fwrite, so I had missed this
part about fclose. Sorry about that and thanks for pointing it out.
Sripathi.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic