wavmrgest - WAVeform MeRGe Extended Segment Table
short wavmrgest (WVFILE *wfp, SEGETBL *segetbl, long offset)
wavmrgest() merges segment definitions from segetbl into the
waveform represented by wfp, adding offset to the end_points of each
segment. If a name collision occurs, the segment name is altered
using the algorithm described in addsega().
On success wavmrgest() returns 0. If any segment cannot be added,
the reason is returned in the error value as follows:
- unalterable name collision
- invalid segment definition
- system error
If there is an error in adding any segment, the merge stops at that point,
leaving the remaining segment definitions unmerged.