MSTL_INIT(3)
β¨ MSTL_INIT β bestie edition β¨
okay so this is the libmseed page for mstl_init and mstl_free β aka the "make a MSTraceList and then let it go" duo π (yes the page is called MSTL_INIT(3), that's the manual name, we're folding it in here like a lil name tag π).
πΈ SYNOPSIS πΈ
#include <libmseed.h>
MSTrace *mstl_init ( MSTrace *mstl );
void mstl_free ( MSTrace **ppmstl, flag freeprvtptr );
likeβ¦ two functions, that's it, no drama π¦
π DESCRIPTION π
mstl_init β the glow-up era β¨
mstl_init will initialize a MSTraceList structure. main character behavior tbh.
and here's the important bit, bestie: if the mstl parameter is not NULL, the structure gets cleared before being reallocated β and any memory allocated for associated MSTraceID and related sub-structures will be freed. so like, it cleans up after itself first, no cap. π§Ή
mstl_free β the goodbye arc π
mstl_free will free all memory associated with a MSTraceList structure and set the structure pointer (*ppmstl) to 0. iconic. responsible. we love a clean exit.
and if the freeprvtptr flag is true, any memory pointed to by the prvtptr members of the MSTraceID or MSTraceSeg structuresβ¦ π (that's the part where it gets freed, fr fr β the flag controls whether that private-pointer memory goes too).
β οΈ heads up:mstl_freezeroes out*ppmstlfor you, so don't go dereferencing it afterward expecting a whole structure, bestie. it's giving0. π
π RETURN VALUES π
mstl_init returns a pointer to the MSTraceList structure it initialized on success, or NULL on error. so vibe check that return value, always. π«Ά
π¦ SEE ALSO π¦
π AUTHOR π
Chad Trabant IRIS Data Management Center
and that's the whole page, no notes π this one's from the Libmseed API, dated 2008/11/21 β vintage but still slaying β¨π«Άπ
π¦ 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