From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <9702181614.AA29672@sauron.zk3.dec.com> Date: Tue, 18 Feb 97 11:14:54 -0500 From: Jerry Feldman Subject: Re: fclose() (fwd) In-Reply-To: <9702181221.AA02768@halfpint.rtp.avanticorp.com> > I just checked and Linux and Digital Unix both do the same thing. Heres > the program: Not quite. On Digital Unix, I change %x to %lx. Pointers are 64 bits. > #include > #include > > int main(void) > { > int i; > for(i=0; i<3; i++) { > FILE *f = fopen("/dev/null","r"); > printf("f = %lx\n", f); > fclose(f); > } > return 0; > } > > and here is the Digital Unix output: sauron:assem [1528%] a.out f = 3ffc0080348 f = 3ffc0080380 f = 3ffc0080380 -- +--------------------------------------------------------------------+ Jerry Feldman Digital Unix Development Environment Digital Equipment Corp. (work)gaf@zk3.dec.com (home)gaf@highway1.com 110 Spitbrook Rd. Mailstop: ZKO3-2/W17 Nashua, NH 03062-9987 (603)881-2970, DTN:381-2970 +--------------------------------------------------------------------+ -- 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