_FRSEG - free a SEGID.

(GCOS8 only)

Usage:

C:
   #include <climb.h>
   _frseg(ptr);
PL6:
   DCL X_FREE_SEGID ENTRY(1);
   X_FREE_SEGID(ptr);

Where:

const void *ptr;
points anywhere into the segment you want freed. "_frseg" extracts the SEGID from the pointer value.

Description:

"_frseg" frees a segment whose descriptor is in the Linkage Segment or the Argument Stack. It also marks the SEGID slot "open" so that it is available for future use (e.g. to be allocated by a call to "_gtseg").

See Also:

expl nsc lib _gtseg
general SEGID allocation routine.

Copyright © 1996, Thinkage Ltd.