Mail Archives: djgpp/1996/09/12/02:45:33
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 -