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