#include "unify.h"
int Get_Limit(int seg_id, unsigned *wrap, unsigned *writep)
Get_Limit returns the current write state of the
sequential segment referenced by seg_id. The offset from
the beginning of the segment to which the next data will be written
is returned in the value pointed to by writep. When a call
to Seq_Write(3) would write
past the end of the segment, the write pointer wraps around to the
beginning of the segment and continues writing the data at the
beginning of the segment (see Seq_Write(3)). The number of
times segment has wrapped since it was created is returned in the
value pointed to by wrap.
On success 0 is returned. Otherwise, a value of -1 is returned.