Novice MicroSoft C5.1 question

Kevin D. Quitt kdq at demott.COM
Thu Aug 2 08:38:25 AEST 1990


In article <17179 at haddock.ima.isc.com> karl at 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 at 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.



More information about the Comp.lang.c mailing list