Docs » Autodocs » exec.library » AllocVec
AllocVec -- allocate memory and keep track of the size (V36)
memoryBlock = AllocVec(byteSize, attributes) D0 D0 D1 void *AllocVec(ULONG, ULONG);
This function works identically to AllocMem(), but tracks the size of the allocation. See the AllocMem() documentation for details.
The result of any memory allocation MUST be checked, and a viable error handling path taken. ANY allocation may fail if memory has been filled.
FreeVec(), AllocMem()
|