atof.3
来自「unix v7是最后一个广泛发布的研究型UNIX版本」· 3 代码 · 共 40 行
3
40 行
.TH ATOF 3 .SH NAMEatof, atoi, atol \- convert ASCII to numbers.SH SYNOPSIS.B double atof(nptr).br.B char *nptr;.PP.B atoi(nptr).br.B char *nptr;.PP.B long atol(nptr).br.B char *nptr;.SH DESCRIPTIONThese functions convert a string pointed to by.I nptrto floating, integer, and long integerrepresentation respectively.The first unrecognized character ends the string..PP.I Atofrecognizes an optional string of tabs and spaces,then an optional sign, thena string of digits optionally containing a decimalpoint, then an optional `e' or `E' followedby an optionally signed integer..PP.I Atoiand.I atolrecognize an optional string of tabs and spaces,then an optional sign, then a string ofdigits..SH SEE ALSOscanf(3).SH BUGSThere are no provisions for overflow.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?