previous next top contents index framed top this page unframed
Figure 42–9. newScratch (GENERIC)
| ADDRESS PROCEDURE newScratch (INTEGER n); ADDRESS PROCEDURE newScratch (LONG INTEGER n); |
newScratch returns the ADDRESS of an area of memory of n storage units, the contents of which are initially cleared. An error occurs if the space cannot be allocated or if n is not positive.
scratchDispose is used to dispose of scratch space.
Example 42–10. Use of newScratch
| ADDRESS a; a := newScratch(2); # get two storage units of scratch space |
MAINSAIL Language Manual, Section 42.7