Commit | Line | Data |
---|---|---|
e6817382 BJ |
1 | .TH ATOF 3 |
2 | .SH NAME | |
3 | atof, atoi, atol \- convert ASCII to numbers | |
4 | .SH SYNOPSIS | |
5 | .B double atof(nptr) | |
6 | .br | |
7 | .B char *nptr; | |
8 | .PP | |
9 | .B atoi(nptr) | |
10 | .br | |
11 | .B char *nptr; | |
12 | .PP | |
13 | .B long atol(nptr) | |
14 | .br | |
15 | .B char *nptr; | |
16 | .SH DESCRIPTION | |
17 | These functions convert a string pointed to by | |
18 | .I nptr | |
19 | to floating, integer, and long integer | |
20 | representation respectively. | |
21 | The first unrecognized character ends the string. | |
22 | .PP | |
23 | .I Atof | |
24 | recoginizes an optional string of tabs and spaces, | |
25 | then an optional sign, then | |
26 | a string of digits optionally containing a decimal | |
27 | point, then an optional `e' or `E' followed | |
28 | by an optionally signed integer. | |
29 | .PP | |
30 | .I Atoi | |
31 | and | |
32 | .I atol | |
33 | recognize an optional string of tabs and spaces, | |
34 | then an optional sign, then a string of | |
35 | digits. | |
36 | .SH SEE ALSO | |
37 | scanf(3) | |
38 | .SH BUGS | |
39 | There are no provisions for overflow. |