putdata.3

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

3
70
字号
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)putdata.3	1.5 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH PUT_DATA 3\-ESPSu 18 Apr 1997.SH NAME.nfput_ddata \- convert and write double precision data to a binary fileput_fdata \- convert and write float data to a binary file.SH SYNOPSIS.ft Bput_ddata(stream,dtype,data,npoints).brFILE *stream;.brchar dtype;.brfloat data[];.brint npoints;.sp.brput_fdata(stream,dtype,data,npoints).brFILE *stream;.brchar dtype;.brfloat data[];.brint npoints;.ft.SH DESCRIPTION.PP.I Put_datawrites data to a binary file. The data to be written is an array ofdouble precision floating values. The data in the file is will consistof bytes, short integers, long integers, floating values, or double precisionfloating values. The.I dtypeargument indicates the type of data to be written to the file; it may be 'b' (byte), 'w' (word \- short integer), 'l' (long integer), 'f' (float),or 'd' (double)..I Npointsvalues from the.I dataarray are converted from double by.I put_ddata,from float by.I put_fdata,to the desired type (with rounding) and written to the file.If the absolute value of a value in.I datais too large to be represented in the output type, it is clipped \-replaced by the largest positive or negative value of the output type..SH DIAGNOSTICSIf a write error occurs,.I put_ddataprints an error message on the error output and exits..SH BUGSIdeally, an error status should be returned on error and the program shouldbe allowed to determine whether to exit..SH SEE ALSO.nf\fIget_ddata\fP(3-ESPSu), \fIget_fdata\fP(3-ESPSu).fi.SH EXPECTED CHANGESFix the flaw described in "BUGS"..SH AUTHOR

⌨️ 快捷键说明

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