Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Memory handling > Heap memory >

HEAP_Copy

Previous pageReturn to chapter overviewNext page

 

Description

 

Creates a copy of a string buffer previously allocate giving it memory pointer.

 

Syntax

 

NewPMem = HEAP_Copy(pMem)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

pMem

Number

No

Pointer to a previously allocated heap memory

 

Remarks

 

Restrictions

 

pMem MUST be a pointer allocated using any of the HEAP_* functions

 

See also

 

Examples