From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <9702181221.AA02768@halfpint.rtp.avanticorp.com> Date: Tue, 18 Feb 1997 07:21:34 -0500 (EST) From: Jim Nance Subject: Re: fclose() (fwd) In-Reply-To: <9702171536.ZM1175@davros.bwh.com> > Yeech! I wonder what it does with three potential file *'s. That downright > sucks; it's nice that they keep their FILE *'s in a stack I just checked and Linux and Digital Unix both do the same thing. Heres the program: #include #include int main(void) { int i; for(i=0; i<3; i++) { FILE *f = fopen("/dev/null","r"); printf("f = %x\n", f); fclose(f); } return 0; } and here is the Linux output: jlnance-pc> a.out f = 8049650 f = 8049650 f = 8049650 Jim -- 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