Core Function Free
From Sputnik Wiki
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);