1ATOF(3)                    Library Functions Manual                    ATOF(3)
2
3
4

NAME

6       atof, atoi, atol - convert ASCII to numbers
7

SYNOPSIS

9       double atof(nptr)
10       char *nptr;
11
12       atoi(nptr)
13       char *nptr;
14
15       long atol(nptr)
16       char *nptr;
17

DESCRIPTION

19       These  functions convert a string pointed to by nptr to floating, inte‐
20       ger, and long integer representation respectively.  The first  unrecog‐
21       nized character ends the string.
22
23       Atof recognizes an optional string of tabs and spaces, then an optional
24       sign, then a string of digits optionally containing  a  decimal  point,
25       then an optional `e' or `E' followed by an optionally signed integer.
26
27       Atoi  and atol recognize an optional string of tabs and spaces, then an
28       optional sign, then a string of digits.
29

SEE ALSO

31       scanf(3)
32

BUGS

34       There are no provisions for overflow.
35
36
37
38                                                                       ATOF(3)
Impressum