🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4972

Re: Close all opened files in C ?

#4972
From: Dan Pop
Date: Sun, 31 Mar 1996 02:36
25 lines
1178 bytes
In <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."

And you'd be dead wrong.  exit() _will_ close all the files that are
opened :-)

Dan
--
Dan Pop
CERN, CN Division
Email: danpop@mail.cern.ch 
Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
Technical Details
Message-ID: <danpop.828239804@rscernix>
Path: arc1-ca.pugleaf.net!rcp6.elan.af.mil!rscernix!danpop
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!rcp6.elan.af.mil!rscernix!danpop
From: danpop@mail.cern.ch (Dan Pop)
Newsgroups: comp.std.c
Subject: Re: Close all opened files in C ?
Date: 31 Mar 96 02:36:44 GMT
Organization: CERN European Lab for Particle Physics
Message-ID: <danpop.828239804@rscernix>
References: <4jgifa$fjd@chaos.kulnet.kuleuven.ac.be> <828105458snz@wbriscoe.demon.co.uk> <4jhmg0$50n@solutions.solon.com>
NNTP-Posting-Host: ues5.cern.ch
X-Newsreader: NN version 6.5.0 #7 (NOV)