<< Click to Display Table of Contents >> Navigation: ThinBASIC Core Language > BuiltIn Functions > Memory handling and pointers > Global memory > Global_Alloc |
Description
Allocates the specified number of bytes from the heap
Syntax
ptr = Global_Alloc(lSize)
Returns
Number: pointer to the allocated memory area.
If returned value is zero, an error has occurred.
Parameters
Name |
Type |
Optional |
Meaning |
lSize |
Number |
No |
Bytes to allocate |
Remarks
Restrictions
See also
Examples