qc.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
printf Type Characters: Pointer
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Character     Type        Output Format
 
     p             Far ptr     Prints the address pointed to by the
                   to void     argument in the form <xxxx>:<yyyy>,
                               where <xxxx> is the segment and <yyyy>
                               is the offset, and the digits <x> and
                               <y> are uppercase hexadecimal digits;
                               %Np prints only the offset of the
                               address, <yyyy>. Since %p expects a
                               pointer to a far value, pointer
                               arguments to p must be cast to far in
                               small-model programs.
                                    -♦-