ATOF(3C) COMMAND REFERENCE ATOF(3C)
NAME
atof, atoi, atol - convert ASCII to numbers
SYNOPSIS
double atof(nptr)
char *nptr;
atoi(nptr)
char *nptr;
long atol(nptr)
char *nptr;
DESCRIPTION
These functions convert a string pointed to by nptr to
floating, integer, and long integer representation
respectively. The first unrecognized character ends the
string.
Atof recognizes an optional string of spaces, then an
optional sign, then a string of digits optionally containing
a decimal point, then an optional e or E followed by an
optionally signed integer.
Atoi and atol recognize an optional string of spaces, then
an optional sign, then a string of digits.
DIAGNOSTICS
Atof calls ldexp(3c), which sets errno on overflow or
underflow.
CAVEATS
There are no provisions for overflow in atol or atoi.
SEE ALSO
ldexp(3c), scanf(3s).
Printed 10/17/86 1
%%index%%
na:72,79;
sy:151,591;
de:742,694;
di:1436,222;
ca:1658,164;
se:1822,122;
%%index%%000000000106