📄 getgenrecd.3
字号:
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)getgenrecd.3 1.5 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH GET_GEN_RECD 3\-ESPSu 18 Apr 1997.SH NAMEget_gen_recd \- get an arbitrary ESPS record as doubles.SH SYNOPSIS.ft B#include <esps/esps.h>.brint.brget_gen_recd(dbuf, tagp, hd, file).brdouble *dbuf;.brlong *tagp;.brstruct header *hd;.brFILE *file;.ft.SH DESCRIPTION.I get_gen_recdgets the next record (including the tag, if any) from an ESPSfile. All fields in the record are converted todouble type..PPThe data is readfrom stream \fIfile\fR into the buffer pointed to by \fIdbuf\fR.The ESPS file header pointed to by \fIhd\fR is consulted to determinethe number of elements to read and the types of each.The data are converted to double if necessary.If the file does not contain tags, the longword pointed to by.I tagpis set to zero..PPThe stream is assumed to point to the beginning of a record.It is left pointing to the subsequent record after the call.The.I dataarray is assumed to be large enough to hold a record..SH EXAMPLE.nfdouble data[100]; /* room for 100 samples */long tag;hd = read_header(file); /* read header */if ((get_gen_recd(data,&tag,hd,file) == EOF) .fi.SH DIAGNOSTICSEOF is returned on end of file. The number of elements read isreturned otherwise..SH BUGSNone known..SH SEE ALSO.nfESPS(5\-ESPS).fi.SH AUTHORJoe Buck, Alan Parker
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -