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

HEAP_Size

Previous pageReturn to chapter overviewNext page

 

Description

 

Retrieves the size of a memory block allocated by the Heap_Alloc or Heap_ReAlloc functions

 

Syntax

 

nSize = HEAP_Size(ptr)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

ptr

Number

No

Pointer to a previously allocated heap memory

 

Remarks

 

Restrictions

 

See also

 

Examples