Research V7 development
authorDennis Ritchie <dmr@research.uucp>
Mon, 15 Jan 1979 00:33:29 +0000 (19:33 -0500)
committerDennis Ritchie <dmr@research.uucp>
Mon, 15 Jan 1979 00:33:29 +0000 (19:33 -0500)
Work on file usr/man/man3/atof.3

Synthesized-from: v7

usr/man/man3/atof.3 [new file with mode: 0644]

diff --git a/usr/man/man3/atof.3 b/usr/man/man3/atof.3
new file mode 100644 (file)
index 0000000..4eb2760
--- /dev/null
@@ -0,0 +1,39 @@
+.TH ATOF 3 
+.SH NAME
+atof, atoi, atol \- convert ASCII to numbers
+.SH SYNOPSIS
+.B double atof(nptr)
+.br
+.B char *nptr;
+.PP
+.B atoi(nptr)
+.br
+.B char *nptr;
+.PP
+.B long atol(nptr)
+.br
+.B char *nptr;
+.SH DESCRIPTION
+These functions convert a string pointed to by
+.I nptr
+to floating, integer, and long integer
+representation respectively.
+The first unrecognized character ends the string.
+.PP
+.I Atof
+recognizes an optional string of tabs and 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.
+.PP
+.I Atoi
+and
+.I atol
+recognize an optional string of tabs and spaces,
+then an optional sign, then a string of
+digits.
+.SH SEE ALSO
+scanf(3)
+.SH BUGS
+There are no provisions for overflow.