delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/12/02:45:33

Date: Thu, 12 Sep 1996 09:32:42 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Rodney Bachtel <rbachtel AT ghgcorp DOT ghgcorp DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: Pointer variables
In-Reply-To: <517i6b$hqp@news.ghgcorp.com>
Message-Id: <Pine.SUN.3.91.960912092949.15096K-100000@is>
Mime-Version: 1.0

On 11 Sep 1996, Rodney Bachtel wrote:

> 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.

Forget about `far', `near' and `huge' pointers when you use DJGPP.  Just 
pointers:

	int *goober;
	char *foobar;
	double *why_not;

How about this:

	/* Let's allocate 4 megabytes and never look back!  */
	int *goober = (int *)malloc (4 * 1024 * 1024);

Is this wonderful or what?

- Raw text -


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