Turbo C++ 1.0 Huge pointer addition error?

Mike Percy grimlok at hubcap.clemson.edu
Tue Jan 15 03:12:08 AEST 1991


gwyn at smoke.brl.mil (Doug Gwyn) writes:

>In article <9101122049.AA28040 at lilac.berkeley.edu> C512052 at UMCVMB.BITNET ("David K. Drum") writes:
>- typedef struct { . . . } foo;
>- foo huge *hp1,hp2;

>That should be
>  foo huge *hp1,*hp2;
 
Actually it sould be
  foo huge *hp1, huge *hp2;

unless you really want a near (or far, depending on memory model)
pointer for hp2.
 
The pointer types are
*     (default type for memory model)
near *
far *
huge *
 
Near, far, and huge are called pointer modifiers, and only affect one
pointer. 


"I don't know about your brain, but mine is really...bossy."
Mike Percy                    grimlok at hubcap.clemson.edu
ISD, Clemson University       mspercy at clemson.BITNET
(803)656-3780                 mspercy at clemson.clemson.edu



More information about the Comp.lang.c mailing list