Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!wuarchive!usc!ucsd!mvb.saic.com!ncr-sd!ncrcae!hubcap!grimlok From: grimlok@hubcap.clemson.edu (Mike Percy) Newsgroups: comp.lang.c Subject: Re: Turbo C++ 1.0 Huge pointer addition error? Message-ID: <12601@hubcap.clemson.edu> Date: 14 Jan 91 16:12:08 GMT References: <9101122049.AA28040@lilac.berkeley.edu> <14837@smoke.brl.mil> Organization: Clemson University, Clemson, SC Lines: 29 gwyn@smoke.brl.mil (Doug Gwyn) writes: >In article <9101122049.AA28040@lilac.berkeley.edu> C512052@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@hubcap.clemson.edu ISD, Clemson University mspercy@clemson.BITNET (803)656-3780 mspercy@clemson.clemson.edu