S-Lang is a stack-based language, and many operations
can leave data in temporary storage (ie on the stack).
The clearstack() function empties the stack, removing any
such temporary variables.
If the optional flag parameter is supplied and is not equal to
0 then the stack contents will be written to standard output
as they are removed from the stack.