C Language and Libraries Help (clang.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.
Pointers Based on Void
                                             Up Contents Index Back
─────C/C++ Language─────────────────────────────────────────────────────────
 
     Form of <base>:
 
          void
 
     A based pointer declared this way acts as an offset into any
     segment. It can be combined with any segment value using the
     :> operator.
 
     For example:
 
          __segment segvar = 0xB800;   // specify a segment value
 
          int __based(void) *bp = 4;   // offset of 4
 
          // set contents of location 0xB804
          *(segvar:>bp) = (0x07 << 8) + 'A';
                                    -♦-