Navigation:  ThinBASIC Language > thinBasic Functions > Memory handling and pointers > Global memory >

Global_Alloc

Previous pageReturn to chapter overviewNext page

 

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