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.
_memavl
 Summary Example                         Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The _memavl function returns the approximate size, in bytes, of
     the memory available for dynamic memory allocation in the near
     heap (default data segment). The _memavl function can be used with
     calloc, malloc, or realloc in the small and medium memory models
     and with _ncalloc, _nmalloc, and _nrealloc in any memory model.
 
     The number of bytes returned by the _memavl function may not be
     the number of contiguous bytes. As a result, a call to malloc
     requesting an allocation of the size returned by _memavl may not
     succeed. Use the _memmax function to find the size of the largest
     block of contiguous memory available.
 
     Return Value
 
     The _memavl function returns the size in bytes as an unsigned
     integer.
                                    -♦-