msr_duplicate - Man Page

Duplicate an MSRecord structure

Synopsis

#include <libmseed.h>

MSRecord *msr_duplicate ( MSRecord *msr, flag datadup );

Description

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.

Return Value

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

See Also

ms_intro(3)

Author

Chad Trabant
IRIS Data Management Center

Info

2007/04/28 Libmseed API