Carbon


GetPtrSize

Header: MacMemory.h Carbon status: Supported

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

Size GetPtrSize (
    Ptr p
);
Parameter descriptions
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 Carbon 1.0.2 and later when running Mac OS 8.1 or later.


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