BSD 3 development
[unix-history] / usr / man / man3 / atof.3
CommitLineData
e6817382
BJ
1.TH ATOF 3
2.SH NAME
3atof, 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
17These functions convert a string pointed to by
18.I nptr
19to floating, integer, and long integer
20representation respectively.
21The first unrecognized character ends the string.
22.PP
23.I Atof
24recoginizes an optional string of tabs and spaces,
25then an optional sign, then
26a string of digits optionally containing a decimal
27point, then an optional `e' or `E' followed
28by an optionally signed integer.
29.PP
30.I Atoi
31and
32.I atol
33recognize an optional string of tabs and spaces,
34then an optional sign, then a string of
35digits.
36.SH SEE ALSO
37scanf(3)
38.SH BUGS
39There are no provisions for overflow.