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.
_vmalloc
 Summary Example                         Up Contents Index Back
─────Run-Time Library───────────────────────────────────────────────────────
 
     The _vmalloc function allocates a virtual memory block of at
     least <size> bytes. The actual size of the allocated block may
     be larger than <size> bytes to allow the virtual memory manager
     to operate more efficiently; use _vmsize to find the actual size
     of the block.
 
     The value returned by _vmalloc is a handle that uniquely
     identifies the virtual memory block. This value is not an address
     and cannot be used to access memory directly. The value must be
     passed to either the _vload or _vlock function in order to obtain
     a valid address.
 
     Return Value
 
     The _vmalloc function returns a handle to the allocated virtual
     memory block, or _VM_NULL if insufficient memory is available or
     if the requested block size is too large to load into DOS memory.
                                    -♦-