Documentation Project 1
sack::containers::text::SegSplit Macro
#define SegSplit(line,pos) SegSplitEx( line, pos DBG_SRC )

PTEXT new_string;

Split a PTEXT segment.

the old string segment is split at the position indicated. The pointer to the old segment is modified to point to now two segments linked dynamically, each part of the segment after the split. If the index is beyond the bounds of the segment, the segment remains unmodified.

PTEXT result = SegSplit( &old_string, 5 );
Copyright (c) 2010. All rights reserved.
What do you think about this topic? Send feedback!