Carbon


GetPtrSize

Header: MacMemory.h Carbon status: Supported

Returns the logical size of the nonrelocatable block corresponding to a pointer.

Size GetPtrSize (
    Ptr p
);
p

A pointer to a nonrelocatable block.

function result

The logical size, in bytes, of the nonrelocatable block pointed to by p. In case of error, the function returns 0.

DISCUSSION

Call the function MemError to get the result code. See “Result Codes”.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when InterfaceLib 7.1 or later is installed. Exported by CarbonLib 1.0 and later and by InterfaceLib 7.1 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)