Date: Thu, 12 Sep 1996 13:20:34 -0300 Message-Id: <1.5.4.16.19960912102356.37af5c24@dmeasc.rc.ipt.br> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Eli Zaretskii , Rodney Bachtel From: Cesar Scarpini Rabak Subject: Re: Pointer variables Cc: djgpp AT delorie DOT com At 09:32 12/09/96 +0200, Eli Zaretskii wrote: > >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); BTW THIS has been the main reason to convert some friends to DJGPP! > >Is this wonderful or what? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br DME/ASC Phone: 55-11-268-35221Ext.350 IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996 Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~