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

Crt_MAlloc

Previous pageReturn to chapter overviewNext page

 

Description

 

Allocates memory blocks.

 

Syntax

 

ptr = Crt_MAlloc(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