Specifications

Commands - 48
FRE
Function
SYNTAX: a = FRE(0)
a = FRE(c$)
PURPOSE: Returns the number of bytes of unused but allocated string space, or the number of bytes left for
program and variables.
REMARKS: The argument 0 returns the number of bytes which are currently unused and available for program
and variables.
When the argument is any string variable (variable name unimportant), the number of bytes of unused
string space is returned.
RELATED: none
EXAMPLE: On power–up, you type:
PRINT FRE(0) ; FRE(A$)
35210 100
The first number is the bytes for programs and all variables. The second is the default string. The
line below increases the string space to 1000 bytes.
CLEAR 1000
PRINT FRE(0) ; FRE(A$)
34310 1000
Notice that the unused string space is now 1000, which reduced the total program and variable space
by 900 bytes.
ERROR: none