Mail Archives: djgpp/1996/09/12/09:43:45
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -