delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/05/02:31:20

From: "A. Sinan Unur" <sinan DOT unur AT cornell DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019