mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
37 lines
663 B
Plaintext
37 lines
663 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
|