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.
_msize Functions
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     Functions in the _msize family return the size, in bytes, of the
     memory block allocated by a call to the appropriate version of the
     calloc, malloc, or realloc function.
 
     In large data models (compact-, large-, and huge-model programs),
     _msize maps to _fmsize. In small data models (tiny-, small- and
     medium-model programs), _msize maps to _nmsize.
 
     The location of the memory block is indicated below:
 
     Function     Data Segment
 
     _msize       Depends on data model of program
     _bmsize      Based heap segment specified by <seg> value
     _fmsize      Far heap (outside default data segment)
     _nmsize      Default data segment (inside near heap)
 
     Return Value
 
     All four functions return the size (in bytes) as an unsigned
     integer.
                                    -♦-