Research V4 development
[unix-history] / man / man3 / atof.3
index 07d5961..35b9116 100644 (file)
@@ -1,43 +1,29 @@
-.pa 1
-.he 'ATOF (III)'1/15/73'ATOF (III)'
-.ti 0
-NAME           atof -- ascii to floating
-.sp
-.ti 0
-SYNOPSIS       jsr     r5,atof; subr
-.sp
-.ti 0
-DESCRIPTION    atof\b\b\b\b____
-will convert an ascii stream to a floating
-number returned in fr0.
-
-The subroutine subr\b\b\b\b____
-(supplied by the caller)
-is called on r5 for each character of the
-ascii stream.
-subr\b\b\b\b____ should return the character in r0.
-The first character not used in the conversion
-is left in r0.
-.sp
+.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
 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 "e" followed by a signed integer.
-.sp
-The subroutine subr\b\b\b\b____ must not disturb any registers.
-.sp
-.ti 0
-FILES          kept in /lib/liba.a
-.sp
-.ti 0
-SEE ALSO       Calls atoi (III)
-.sp
-.ti 0
-DIAGNOSTICS    There are none; overflow results in a very large
+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.
 number and garbage characters terminate the scan.
-.sp
-.ti 0
-BUGS           The
-routine should accept initial "+", initial blanks, and "E" for "e".
-
-Overflow should be signalled with the carry bit.
+.sh BUGS
+The
+routine should accept initial \fB+\fR, initial blanks, and \fBE\fR for \fBe\fR.
+Overflow should be signalled.