Sack Library Documentation
ContentsIndexReferenceHome
PreviousUpNext
sack::containers::text::SegSplit Macro
C++
#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 );
   
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.
Copyright (c) 2000+. All rights reserved.
What do you think about this topic? Send feedback!