From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199702241934.NAA19587@atheist.tamu.edu> Date: Mon, 24 Feb 1997 13:34:30 -0600 (CST) From: Richard Henderson Subject: Re: fclose() In-Reply-To: <33119E2E.7313@voicenet.com> > The fclose() function conforms the the ANSI standard. No mention of a > posix standard. > > I suppose now I'll get a lecture on the virtues/history of ANSI, and > Posix compliances ;-( If you mean a lecture on how to read a standards document, yes. Here's the excerpt from the ANSI standard: ] 7.9.3 Files ] ] [...] ] ] A file may be disassociated from a controlling stream by _closing_ ] the file. Output streams are flushed (any unwritten buffers are ] transmitted to the host environment) before the stream is ] dissociated from the file. The value of a pointer to a FILE object is ] indeterminate after the associated file is closed (including the ] standard text streams). and from the ISO standard that supersedes it: ] The