🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4973

Re: Close all opened files in C ?

#4973
From: Eric W. Biederman
Date: Mon, 01 Apr 1996 07:16
24 lines
1236 bytes
In article <4jhmg0$50n@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:

   In article <828105458snz@wbriscoe.demon.co.uk>,
   walter briscoe  <walter@wbriscoe.demon.co.uk> wrote:
   [re:]
   >> NOW THIS IS MY QUESTION:

   >> How can I close all files that are opened ?

   >This thread is inappropriate in comp.std.c.

   >I suggest comp.lang.c.moderated may be appropriate.

   Probably not; I'd bounce it with "you can't in C, try a newsgroup
   specific to your system."


I'm not absolutely positive it's in the standard, but I do believe
either you find each on and close it. OR call exit. OR return from
main.

can someone confirm the second two?

Eric
Technical Details
Message-ID: <ERIC.96Apr1011638@cse.unl.edu>
Path: arc1-ca.pugleaf.net!crcnews.unl.edu!eric
References: <4jgifa$fjd@chaos.kulnet.kuleuven.ac.be> <828105458snz@wbriscoe.demon.co.uk> <4jhmg0$50n@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!crcnews.unl.edu!eric
From: Eric W. Biederman <ebiederm@cse.unl.edu>
Newsgroups: comp.std.c
Subject: Re: Close all opened files in C ?
Date: 01 Apr 1996 07:16:38 GMT
Organization: University of Nebraska--Lincoln 
Distribution: world
Message-ID: <ERIC.96Apr1011638@cse.unl.edu>
References: <4jgifa$fjd@chaos.kulnet.kuleuven.ac.be> <828105458snz@wbriscoe.demon.co.uk>
 <4jhmg0$50n@solutions.solon.com>
NNTP-Posting-Host: cse.unl.edu
In-reply-to: seebs@solutions.solon.com's message of 29 Mar 1996 15:59:28 -0600