mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
Release calc version 2.10.3t5.45
This commit is contained in:
36
help/free
Normal file
36
help/free
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
Reference in New Issue
Block a user