MST_INIT(3)
β¨ MST_INIT β NAME β¨
okay bestie, gather round, because this one is literally the foundation of everything: mst_init β initializing and freeing MSTrace and MSTraceGroup structures. that's the whole gig. no cap. π
πΈ SYNOPSIS πΈ
she's a libmseed girlie, so first things first:
#include <libmseed.h>
and then the four icons themselves:
MSTrace *mst_init ( MSTrace *mst );
void mst_free ( MSTrace **ppmst );
MSTraceGroup *mst_initgroup ( MSTraceGroup *mstg );
void mst_freegroup ( MSTraceGroup **ppmstg );
π¦ DESCRIPTION π¦
so, mst_init will initialize a MSTrace structure. if the mst parameter is NULL, a brand new structure gets allocated β fresh out the box, main character energy β¨. but if the mst parameter is not NULL, then the structure gets cleared, and any memory allocated for the MSTrace.datasamples and MSTrace.prvtptr members will be freed. so it's like... a glow-up reset. she's clearing the vibes. π
mst_free will free all memory associated with a MSTrace structure and set the structure pointer (*ppmst) to 0. and yes, that includes any memory pointed to by the prvtptr member of the MSTrace structure. every last crumb. she does not leave crumbs. π
mst_initgroup will initialize a MSTraceGroup structure. if the mstg parameter is NULL, a new structure will be allocated. if the mstg parameter is not NULL, the structure will be cleared and any all associated MSTrace structures will be freed. bye besties, it's a group unfollow π
mst_freegroup will free all memory associated with a MSTraceGroup structure and set the structure pointer (*ppmstg) to 0. periodt. π«Ά
π RETURN VALUES π
mst_init returns a pointer to the MSTrace structure initialized on success, or NULL on error. that's it. that's the vibe check. π
mst_initgroup returns a pointer to the MSTraceGroup structure initialized on success, or NULL on error. same energy, different struct. π
fr fr: NULL means something went wrong, so don't just yolo past it, bestie. π
π SEE ALSO π
β AUTHOR β
Chad Trabant IRIS Data Management Center
and that's the whole page, bestie!! this lil slice of the Libmseed API is dated 2006/10/10, and the man page itself is MST_INIT(3). ate and left no crumbs. mwah ππΈ
π¦ where this page comes from
- debian bookworm: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- debian trixie: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libmseed-doc 2.19.6-3 Β· LGPL-3.0-or-later
- ubuntu noble: libmseed-doc 2.19.8-1ubuntu2 Β· LGPL-3.0-or-later
- ubuntu questing: libmseed-doc 2.19.8-1ubuntu2
- ubuntu resolute: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- ubuntu stonking: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms