Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!usc!srhqla!demott!kdq From: kdq@demott.COM (Kevin D. Quitt) Newsgroups: comp.lang.c Subject: Re: Novice MicroSoft C5.1 question Message-ID: <440@demott.COM> Date: 1 Aug 90 22:38:25 GMT References: <17179@haddock.ima.isc.com> Reply-To: kdq@demott.COM (Kevin D. Quitt) Organization: DeMott Electronics Co., Van Nuys CA Lines: 18 In article <17179@haddock.ima.isc.com> karl@haddock.ima.isc.com (Karl Heuer) writes: > >For portable usage, you should cast the pointer to (void *); it's not always >true that `int *' and `void *' have the same representation. Apparently MSC >requires you to also use the `far' keyword in some memory models, but if they >claim to be standard conforming, that's a bug%. MSC's %p prints the pointer in the format SSSS:OOOO (segment/offset), with %Np printing only the OOOO portion. Both forms expect a 32 bit pointer, so non-32 bit pointers must be coerced by using the far keyword. -- _ Kevin D. Quitt demott!kdq kdq@demott.com DeMott Electronics Co. 14707 Keswick St. Van Nuys, CA 91405-1266 VOICE (818) 988-4975 FAX (818) 997-1190 MODEM (818) 997-4496 PEP last 96.37% of all statistics are made up.