![]() |
NewPtrSysClear |
||||
Header: | MacMemory.h | Carbon status: | Unsupported | |
Allocates a nonrelocatable block of a specified size in the system heap with all its bytes set to 0.
Ptr NewPtrSysClear ( Size byteCount );
The requested size (in bytes) of the nonrelocatable block.
A pointer to the new block. If NewPtrSysClear fails to allocate a block of the requested size, it returns NULL.
The NewPtrSysClear function works much as the NewPtr function does, but attempts to allocate the requested block in the system heap zone instead of in the current heap zone. Also, it sets all bytes in the new block to 0 instead of leaving the contents of the block undefined.
Because NewPtrSysClear allocates memory, you should not call it at interrupt time.
Call the function MemError to get the result code. See
Not supported in Carbon. Not available in Carbon.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)