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

Crt_ReAlloc

Previous pageReturn to chapter overviewNext page

 

Description

 

Reallocate memory blocks

 

Syntax

 

ptr = Crt_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

Pointer to previously allocated memory block.

lSize

Number

No

Length in bytes of each element.

 

Remarks

 

Restrictions

 

See also

 

Examples