diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-20 13:50:04 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-20 13:50:04 +0000 |
commit | ba6b056376adedc82f4ac0f41b5eed2fa3f30c75 (patch) | |
tree | e5c095a3d4f9afb3b98cca651e27f12c8880ffbd /lib/libc/stdlib/strtod.3 | |
parent | 51643f419480d5bdfbed4ef6c16cf20340d8a357 (diff) |
Flesh out stdlib function man pages.
Diffstat (limited to 'lib/libc/stdlib/strtod.3')
-rw-r--r-- | lib/libc/stdlib/strtod.3 | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/lib/libc/stdlib/strtod.3 b/lib/libc/stdlib/strtod.3 index 143fea34dca..4e04f6738e2 100644 --- a/lib/libc/stdlib/strtod.3 +++ b/lib/libc/stdlib/strtod.3 @@ -33,7 +33,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: strtod.3,v 1.6 2000/03/04 22:19:31 aaron Exp $ +.\" $OpenBSD: strtod.3,v 1.7 2000/04/20 13:50:03 aaron Exp $ .\" .Dd June 29, 1991 .Dt STRTOD 3 @@ -50,18 +50,23 @@ string to double .Sh DESCRIPTION The .Fn strtod -function converts the initial portion of the string -pointed to by +function converts the initial portion of the string pointed to by .Fa nptr to .Li double representation. .Pp -The expected form of the string is an optional plus (``+'') or minus -sign (``-'') followed by a sequence of digits optionally containing +The expected form of the string is an optional plus +.Pq Ql + +or minus sign +.Pq Ql - +followed by a sequence of digits optionally containing a decimal-point character, optionally followed by an exponent. -An exponent consists of an ``E'' or ``e'', followed by an optional plus -or minus sign, followed by a sequence of digits. +An exponent consists of an +.Sq E +or +.Sq e , +followed by an optional plus or minus sign, followed by a sequence of digits. .Pp Leading whitespace characters in the string (as defined by the .Xr isspace 3 @@ -90,8 +95,7 @@ is returned (according to the sign of the value), and .Er ERANGE is stored in .Va errno . -If the correct value would cause underflow, zero is -returned and +If the correct value would cause underflow, zero is returned and .Er ERANGE is stored in .Va errno . @@ -109,6 +113,5 @@ Overflow or underflow occurred. .Sh STANDARDS The .Fn strtod -function -conforms to +function conforms to .St -ansiC . |