Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jerry Feldman <gaf@zk3.dec.com>
Subject: Re: fclose() (fwd)
Date: Tue, 18 Feb 97 11:14:54 -0500	[thread overview]
Message-ID: <9702181614.AA29672@sauron.zk3.dec.com> (raw)
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 <stdio.h>
> #include <stdlib.h>
> 
> 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

       reply	other threads:[~1997-02-18 16:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9702181221.AA02768@halfpint.rtp.avanticorp.com>
1997-02-18 16:14 ` Jerry Feldman [this message]
1997-02-22  1:02 fclose() (fwd) Eric Smith
     [not found] <gaf@zk3.dec.com>
1997-02-21  4:59 ` Bryan W. Headley
     [not found] <9702171536.ZM1175@davros.bwh.com>
1997-02-18 12:21 ` Jim Nance
  -- strict thread matches above, loose matches on Subject: below --
1997-02-17 22:55 Stephen Williams
     [not found] <jlnance@avanticorp.com>
1997-02-17 21:36 ` Bryan W. Headley
1997-02-17 21:18 Jim Nance
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox