_vmsize

Description

Returns the size of a virtual memory block.

#include <vmemory.h>

unsigned long __far _vmsize( _vmhnd_t handle ):

handle Handle to previously allocated virtual memory block  

Remarks

The _vmsize function returns the size, in bytes, of a virtual memory block. The argument handle points to a virtual memory block previously allocated through a call to _vmalloc or _vrealloc. The size returned may be larger than the size requested in the call to _vmalloc or _vrealloc.

Return Value

The _vmsize function returns the size (in bytes) of the specified virtual memory block as an unsigned long.

Compatibility

Standards:None

16-Bit:DOS

32-Bit:None

See Also

_vmalloc

Example

See the example for _vrealloc.