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.
_based
 Example                                   Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
  Keyword:   _based
 
  Syntax:    _based( base ) <declarator>
 
  Summary:   Specifies that a data object resides in the segment
             specified by <base>, and is not assumed to reside in the
             current data segment. Pointers specified as based occupy
             only 16 bits, and are added to the base to provide a
             32-bit address range.
 
  See also:  _bfreeseg, _bheapseg, _bmalloc, _far, _huge, _near,
             _segment, _segname, _self
 
     Based variables can be used in the following ways:
 
     Form of <base>                  Data Object Specified
 
      _segname(<string literal>)     Variable allocated in the segment
                                     named by the string.
 
      <segment>                      Pointer to refer to locations in
                                     the specified segment. The segment
                                     can be specified by casting, i.e.,
                                     (_segment)<variable>.
 
      <pointer>                      A pointer to be used as an offset
                                     from the specified pointer.
 
      void                           A generic pointer that acts as an
                                     offset into a segment; combined
                                     with a segment name using ":>".
 
      (_segment)_self                Pointer to refer to locations in
                                     the same segment that the pointer
                                     variable itself resides in.
                                    -♦-