<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Memory handling and pointers > Global memory > Global_ReAlloc |
Description
Changes the size of a specified global memory object.
The size can increase or decrease.
Syntax
ptr = Global_ReAlloc(pMem, lSize)
Returns
Number: pointer to the allocated memory area.
If returned value is zero, an error has occurred.
Parameters
Name |
Type |
Optional |
Meaning |
pMem |
Number |
No |
A handle to the global memory object. This handle is returned by either the Global_Alloc or Global_ReAlloc function. |
lSize |
Number |
No |
Bytes to allocate |
Remarks
Restrictions
See also
Examples