atof.3
来自「UNIX v6源代码 这几乎是最经典的unix版本 unix操作系统设计和莱」· 3 代码 · 共 30 行
3
30 行
.th ATOF III 4/30/73.sh NAMEatof \*- convert ASCII to floating.sh SYNOPSIS.ft Bdouble atof(nptr).brchar *nptr;.br.ft R.sh DESCRIPTION.it Atofconverts a string to a floatingnumber..it Nptrshould point to a string containing the number;the first unrecognized character ends the number..s3The only numbers recognized are: an optional minussign followed by a string of digits optionally containingone decimal point, then followed optionally by theletter \fBe\fR followed by a signed integer..sh DIAGNOSTICSThere are none; overflow results in a very largenumber and garbage characters terminate the scan..sh BUGSTheroutine should accept initial \fB+\fR, initial blanks, and \fBE\fR for \fBe\fR.Overflow should be signalled.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?