Research V4 development
authorKen Thompson <ken@research.uucp>
Tue, 6 Nov 1973 01:08:27 +0000 (20:08 -0500)
committerKen Thompson <ken@research.uucp>
Tue, 6 Nov 1973 01:08:27 +0000 (20:08 -0500)
Work on file man/man3/atof.3

Synthesized-from: v4

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

diff --git a/man/man3/atof.3 b/man/man3/atof.3
new file mode 100644 (file)
index 0000000..35b9116
--- /dev/null
@@ -0,0 +1,29 @@
+.th ATOF III 4/30/73
+.sh NAME
+atof \*- ascii to floating
+.sh SYNOPSIS
+.ft B
+double atof(nptr)
+.br
+char *nptr;
+.br
+.ft R
+.sh DESCRIPTION
+.it Atof
+converts a string to a floating
+number.
+.it Nptr
+should point to a string containing the number;
+the first unrecognized character ends the number.
+.s3
+The only numbers recognized are:  an optional minus
+sign followed by a string of digits optionally containing
+one decimal point, then followed optionally by the
+letter \fBe\fR followed by a signed integer.
+.sh DIAGNOSTICS
+There are none; overflow results in a very large
+number and garbage characters terminate the scan.
+.sh BUGS
+The
+routine should accept initial \fB+\fR, initial blanks, and \fBE\fR for \fBe\fR.
+Overflow should be signalled.