msr_init.3

来自「C编写的格式转换程序」· 3 代码 · 共 44 行

3
44
字号
.TH MSR_INIT 3 2006/02/27 "Libmseed API".SH DESCRIPTIONInitializing and freeing MSRecord and related structures.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "MSRecord *\fBmsr_init\fP ( MSRecord *" msr " );.BI "void      \fBmsr_free\fP ( MSRecord **" ppmsr " ); .BI "void      \fBmsr_free_blktchain\fP ( MSRecord *" msr " );.fi.SH DESCRIPTION\fBmsr_init\fP will initialize a MSRecord structure.  If the \fImsr\fPparameter is NULL a new structure will be allocated.  If the \fImsr\fPparameter is not NULL the blockette chain (MSRecord.blkts) will befreed but any memory allocated for MSRecord.fsdh andMSRecord.datasamples will be preserved as it will cleanly be re-usedby routines such as \fBmsr_unpack(3)\fP.\fBmsr_free\fP will free all memory associated with a MSRecordstructure including the blockette chain and set the structure pointer(*ppmsr) to 0.\fBmsr_free_blktchain\fP will free all memory associated with theblockette chain of an MSRecord structure.  The shortcut blockettepointers will also be reset..SH RETURN VALUES\fBmsr_init\fP returns a pointer to the MSRecord structure initializedon success or NULL on error..SH SEE ALSO\fBms_intro(3)\fP, \fBmsr_pack(3)\fP and \fBmsr_unpack(3)\fP..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?