|
|
1.1 root 1: .TH ATOF 3 "19 January 1983"
2: .SH NAME
3: atof, atoi, atol \- convert ASCII to numbers
4: .SH SYNOPSIS
5: .nf
6: .B double atof(nptr)
7: .B char *nptr;
8: .PP
9: .B atoi(nptr)
10: .B char *nptr;
11: .PP
12: .B long atol(nptr)
13: .B char *nptr;
14: .fi
15: .SH DESCRIPTION
16: These functions convert a string pointed to by
17: .I nptr
18: to floating, integer, and long integer representation respectively.
19: The first unrecognized character ends the string.
20: .PP
21: .I Atof
22: recognizes an optional string of spaces, then an optional sign, then
23: a string of digits optionally containing a decimal
24: point, then an optional `e' or `E' followed by an optionally signed integer.
25: .PP
26: .I Atoi
27: and
28: .I atol
29: recognize an optional string of spaces, then an optional sign, then a
30: string of
31: digits.
32: .SH SEE ALSO
33: scanf(3S)
34: .SH BUGS
35: There are no provisions for overflow.
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.