Core Function Free

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> Free( <ptr> ) </pre> === Description === Deallocate memory from a pointer. === Parameters=== ==== ptr ==== The pointer to use. === Return Value === Success: Returns ...")
 
m (1 revision)
 
(One intermediate revision by one user not shown)

Latest revision as of 12:37, 14 June 2015

Free( <ptr> )

Contents

Description

Deallocate memory from a pointer.

Parameters

ptr

The pointer to use.

Return Value

Success: Returns 1.

Failure: Returns 0.

Remarks

None.

Example

$PTR = Alloc(300);
 
PTRWrite($PTR, "f", 0, 133.77);
PTRWrite($PTR, "l", 4, 777);
PTRWrite($PTR, "i", 12, 1221);
 
Println( PTRRead($PTR, "f", 0) );
Println( PTRRead($PTR, "l", 4) );
Println( PTRRead($PTR, "i", 12) );
 
Free($PTR);
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox