diff options
| author | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
|---|---|---|
| committer | Jacob McDonnell <jacob@jacobmcdonnell.com> | 2026-04-25 21:07:28 -0400 |
| commit | 711594636704defae873be1a355a292505585afd (patch) | |
| tree | 59ee13f863830d8beba6cfd02bbe813dd486c26f /static/v10/man3/atof.3 | |
| parent | 3258a063c1f189d7b019e40e525b46bef9b9a7b1 (diff) | |
docs: Added UNIX V10 Manuals
Diffstat (limited to 'static/v10/man3/atof.3')
| -rw-r--r-- | static/v10/man3/atof.3 | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/static/v10/man3/atof.3 b/static/v10/man3/atof.3 new file mode 100644 index 00000000..07d59613 --- /dev/null +++ b/static/v10/man3/atof.3 @@ -0,0 +1,43 @@ +.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____ +will convert an ascii stream to a floating +number returned in fr0. + +The subroutine subr____ +(supplied by the caller) +is called on r5 for each character of the +ascii stream. +subr____ should return the character in r0. +The first character not used in the conversion +is left in r0. +.sp +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____ 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 +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. |
