From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9bba20cd8b2e44f67fd78a2c5baa8bf0.axp-list@archive.invalid> X-Archive-Original-Message-ID: <<199702191521.KAA14443@ tikva>> Date: Wed, 19 Feb 1997 17:45:28 +0000 (GMT) From: Philip Blundell Subject: Re: fclose() In-Reply-To: <330AFE32.5C6E@voicenet.com> On Wed, 19 Feb 1997, Uncle George wrote: > Mark Hamstra wrote: > > > The only error POSIX compliant fclose() can return is EOF, which is not > > appropriate in the case of this type of programmer error. > I suppose it would be asking too much to have > > if ( chan not open ) > return ( EOF ); > > as part of the fclose() process. Yes. The argument you pass to fclose() is a pointer. From fclose's point of view there is no difference between a completely garbage pointer and one that's been closed and freed. T phil -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com