From: "A. Sinan Unur" Newsgroups: comp.os.msdos.djgpp Subject: Re: Simple beginner questions Date: Thu, 04 Dec 1997 14:39:19 -0600 Organization: Cornell University Lines: 12 Sender: asu1 AT cornell DOT edu (Verified) Message-ID: <348714F7.5E75@cornell.edu> References: <3 DOT 0 DOT 16 DOT 19971204175506 DOT 2f7fbff2 AT hem1 DOT passagen DOT se> Reply-To: sinan DOT unur AT cornell DOT edu NNTP-Posting-Host: facilityk-dns.human.cornell.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter Palotas wrote: > > >make a habit of setting fp to NULL after closing it. AFAIK, files do > >not close themselves. > > I actually think that the libc exit code does this for you, although > it is probably not defined in the ANSI standard that the files should > be closed, but DJGPP does this, I think. you mean exit()? well, yes, exit() closes all open streams (by ANSI), but that hardly applies to the original question. -- Sinan