Important: The information in this document is obsolete and should not be used for new development.
PtrZone
If you have allocated a nonrelocatable block and need to know in which zone it lies, you can use thePtrZone
function.
FUNCTION PtrZone (p: Ptr): THz;
p
- A pointer to a nonrelocatable block.
DESCRIPTION
ThePtrZone
function returns a pointer to the heap zone containing the nonrelocatable block pointed to byp
.In case of an error, the result returned by
PtrZone
is undefined and should be ignored.ASSEMBLY-LANGUAGE INFORMATION
The registers on entry and exit forPtrZone
are
Registers on entry A0 Pointer whose zone is to be found
Registers on exit A0 Pointer to heap zone of nonrelocatable block D0 Result code RESULT CODES
noErr 0 No error memWZErr -111 Attempt to operate on a free block