mstl_init(3)

mstl_init3

Initializing and freeing mstracelist structures

Usage

#include <libmseed.h>
MSTrace      *mstl_init ( MSTrace *mstl );
void          mstl_free ( MSTrace **ppmstl, flag freeprvtptr );

Overview

mstl_init will initialize a MSTraceList structure. If the mstl parameter is not NULL the structure will be cleared before being reallocated any memory allocated for associated MSTraceID and relate sub-structures will be freed.

mstl_free will free all memory associated with a MSTraceList structure and set the structure pointer (*ppmstl) to 0. If the freeprvtptr flag is true any memory pointed to by the prvtptr members of the MSTraceID or MSTraceSeg structures.

Return values

mstl_init returns a pointer to the MSTraceList structure initialized on success or 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.