DOKK / manpages / debian 12 / libmseed-doc / msr_duplicate.3.en
MSR_DUPLICATE(3) Library Functions Manual MSR_DUPLICATE(3)

msr_duplicate - Duplicate an MSRecord structure

#include <libmseed.h>
MSRecord *msr_duplicate ( MSRecord *msr, flag datadup );

msr_duplicate creates a copy of an MSRecord structure including all sub-structures (FSDH and blockette chain). If the datadup flag is true the data samples from msr will also be duplicated, otherwise the copy MSRecord will not have any associated data sample array regardless if the source MSRecord had any.

msr_duplicate returns a pointer to an MSRecord on success and NULL on error.

ms_intro(3)

Chad Trabant
IRIS Data Management Center
2007/04/28 Libmseed API