|
![]() |
![]() |
version 2003
PA_SetHandleSize (ahandle; newlen) → char
Parameter | Type | Description | |
ahandle | PA_Handle | → | Handle to a valid memory block |
newlen | long | → | Desired new size |
Function result | char | ← | True (1) if successful |
Description
The routine
PA_SetHandleSize
shrinks or expands the size of the memory block led to by
aHandle
.
Handle must be a valid
PA_Handle
obtained from
PA_NewHandle
(or MacOS trap NewHandle).
A call to
PA_GetLastError
should always be done after using
PA_SetHandleSize
.
Example
Append data to an existing
PA_Handle.