getfeaptr.3

来自「speech signal process tools」· 3 代码 · 共 65 行

3
65
字号
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)getfeaptr.3	1.6 06 May 1997 ESI.TH GET_FEA_PTR 3\-ESPSu 06 May 1997.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEget_fea_ptr \- get pointer to storage for field in FEA file record .SH SYNOPSIS.nf.ft B#include <esps/esps.h>#include <esps/fea.h>char *get_fea_ptr(rec, name, hd)struct fea_data *rec;char *name;struct header *hd;.fi.SH DESCRIPTION.I get_fea_ptrreturns a pointer to the data associated with a field (\fIname\fR) in the ESPS Featurefile pointed to by \fIhd\fR at record \fIrec\fR.The function returns type (char *) and it must be coerced to the correcttype..PPIf \fIname\fR is not a defined field name in the Feature file (or isNULL) the function returns NULL..PPThis function must be called after\fIallo_fea_rec\fR(3\-ESPSu) and need not be called more than once for anygiven record\-header set. .SH EXAMPLE.nfshort *sp;struct fea_data *rec;\fI/* allocate a record */\fRrec = allo_fea_rec(hd);\fI/* get a pointer to the data for "short1" */\fRsp = (short *)get_fea_ptr(rec,"short1",hd);\fI/* get a record */\fRif(get_fea_rec(rec,hd,file) == EOF) \fI eof ...\fR\fI/* access the data */\fRalpha = *sp + 100;.fi.SH DIAGNOSTICS.PPIf \fIhd\fR does not point to a ESPS Feature file or \fIrec\fR is NULL a message is printed andthe program terminates with an exit 1..SH BUGSNone known..SH "SEE ALSO".nfallo_fea_rec(3\-ESPSu), add_fea_fld(3\-ESPSu), get_fea_deriv(3\-ESPSu),get_fea_rec(3\-ESPSu), put_fea_rec(3\-ESPSu), set_fea_deriv(3\-ESPSu),FEA(5\-ESPS).fi.SH AUTHORAlan Parker

⌨️ 快捷键说明

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