Files
calc/help/free
2017-05-21 15:38:33 -07:00

37 lines
662 B
Plaintext

NAME
free - free the memory used to store values of lvalues
SYNOPSIS
free(a, b, ...)
TYPES
a, b, ... any
return null value
DESCRIPTION
Those of the arguments a, b, ... that specify lvalues are assigned
the null value, effectively freeing whatever memory is used to
store their current values. Other arguments are ignored.
free(.) frees the current "old value".
EXAMPLE
> a = 7
> mat M[3] = {1, list(2,3,4), list(5,6)}
> print memsize(a), memsize(M)
80 736
> free(a, M[1])
> print memsize(a), memsize(M)
16 424
LIMITS
none
LIBRARY
none
SEE ALSO
freeglobals, freestatics, freeredc