ReAlloc¶
Reallocates a memory block.
Declaration¶
Source position: cmem.pp line 67
function ReAlloc(P: Pointer; Size: PtrUInt) : pointer; cdecl;external LibName name 'realloc';
Arguments¶
| Name | Description |
|---|---|
| P | Pointer to the old block. |
| Size | New size for the memory block. |
Function result¶
A pointer to the new memory block.
Description¶
ReAlloc re-allocates a block of memory pointed to by p. The new block will have size Size, and as much data as was available or as much data as fits is copied from the old to the new location.