msr_duplicate(3)

msr_duplicate3

Duplicate an msrecord structure

Usage

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

Overview

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_duplicate returns a pointer to an MSRecord on success and NULL on error.

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

Author

Chad Trabant
IRIS Data Management Center

From libmseed-doc 2.19.8-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.