DOS/32 Advanced DOS Extender - D32A C/C++ Run-Time Library Reference
4.01 - DOS/32 Advanced D32A Library function - d32a_malloc()
Synopsys:
#include <d32a.h>
char *d32a_malloc(unsigned long Size);
Description:
The d32a_malloc function allocates a memory block with the size of Size
bytes from the present DPMI server in the Extended (High) memory area, at
the addresses above 0x100000 (1MB). The memory allocated by this function
cannot be accessed by Real Mode programs or Real Mode DOS functions.
Returns:
The linear pointer to the first byte of the allocated memory block.
The pointer returned by this function is also used as a handle passed
as an argument to the d32a_free function, when deallocating memory.
If the memory block of requested size Size cannot be allocated due to
insufficient memory, this function will return NULL.
Copyright © DOS/32 Advanced Team 1996-2002 All Rights Reserved
|