File:  [Research Unix] / researchv10dc / dist / man / v4 / man3 / atof.3
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

.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.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.