FreeHeap

Top  Previous  Next

Syntax

INT = FreeHeap(lpMem as UINT)

Description

Used internally by string functions. Frees memory allocated with AllocHeap

Parameters

lpMem - Memory handle returned by the AllocHeap function.

Return value

0 on failure

Remarks

This function should only be used by command implementers.

See Also: AllocHeap

Example usage

DEF p as POINTER
p = AllocHeap(100)
#<STRING>p = "Copied to heap memory"
PRINT #<STRING>p
FreeHeap(p)