www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/13/00:43:49

From: elf AT netcom DOT com (Marc Singer)
Message-Id: <199609130433.VAA01029@netcom4.netcom.com>
Subject: Re: Pointer variables
To: rbachtel AT ghgcorp DOT ghgcorp DOT com (Rodney Bachtel)
Date: Thu, 12 Sep 1996 21:33:26 -0700 (PDT)
Cc: djgpp AT delorie DOT com (DJGPP List Alias)
In-Reply-To: <517i6b$hqp@news.ghgcorp.com> from "Rodney Bachtel" at Sep 11, 96 11:32:27 pm
MIME-Version: 1.0

> 
> Last question for a while, I promise. What is the C equiv. of the 
> pascal pointer type? In pascal, it is a 32bit ptr, but I can't get DJGPP 
> to do a int far *goober as is recommended for TurboC.
> 

While questions are (generally) answered graciously, you might
consider borrowing or buying a book on learning C.  

The keyward 'far' does not exist on 32 bit machines.  It is a
hold-over from the 16 bit DOS/Windows days where we needed to break
out of the 64k (2^16) box.  All pointers on 32 OS's for the x86
architecture are 32 bits.  (Actually this is not entirely true, but
there is no reason to believe you are planning to write interrupt
handlers in your first go in C land.)  

int* pi;			/* This declares a pointer to an integer. */

Marc Singer
elf AT netcom DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019