MAINSAIL Language Manual, Section 46.9

previous   next   top   contents   index   framed top   this page unframed


46.9. $reclaim

Figure 46–11. $reclaim
$ALWAYSINLINE
PROCEDURE   $reclaim    (STRING s;
                         
POINTER($areaap);

$reclaim is a low-level STRING space manipulation PROCEDURE that can be used to enhance efficiency in certain situations. However, incautious use of $reclaim can corrupt MAINSAIL's STRING space; this PROCEDURE should be used only by those who have a good understanding of what it does.

$reclaim reclaims the characters of a STRING s if s is at the top of the area ap's STRING space; otherwise, it does nothing.

The behavior of $reclaim is undefined unless it conforms to the following restrictions:

Example:

s := cvs(lr,'0,myArea);
...
$reclaim(s,myArea);
    # 
frees storage if s is at top of myArea's
    # 
STRING space

previous   next   top   contents   index   framed top   this page unframed

MAINSAIL Language Manual, Section 46.9