]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/strtod.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / stdlib / FreeBSD / strtod.3.patch
CommitLineData
1f2f436a
A
1--- strtod.3.orig 2010-04-29 10:40:21.000000000 -0700
2+++ strtod.3 2010-04-29 10:40:42.000000000 -0700
3@@ -45,11 +45,20 @@ string to floating point
224c7076
A
4 .Sh SYNOPSIS
5 .In stdlib.h
6 .Ft double
7-.Fn strtod "const char * restrict nptr" "char ** restrict endptr"
8+.Fo strtod
9+.Fa "const char *restrict nptr"
10+.Fa "char **restrict endptr"
11+.Fc
12 .Ft float
13-.Fn strtof "const char * restrict nptr" "char ** restrict endptr"
14+.Fo strtof
15+.Fa "const char *restrict nptr"
16+.Fa "char **restrict endptr"
17+.Fc
18 .Ft "long double"
19-.Fn strtold "const char * restrict nptr" "char ** restrict endptr"
20+.Fo strtold
21+.Fa "const char *restrict nptr"
22+.Fa "char **restrict endptr"
23+.Fc
24 .Sh DESCRIPTION
25 These conversion
26 functions convert the initial portion of the string
1f2f436a 27@@ -62,16 +71,17 @@ and
224c7076
A
28 .Vt "long double"
29 representation, respectively.
30 .Pp
31-The expected form of the string is an optional plus (``+'') or minus
32-sign (``\-'') followed by either:
33+The expected form of the string
34+is an optional plus (``+'') or minus (``\-'') sign,
35+followed by either:
36 .Bl -bullet
37 .It
38-a decimal significand consisting of a sequence of decimal digits
39-optionally containing a decimal-point character, or
40+a decimal significand, consisting of a sequence of decimal digits
41+(optionally containing a decimal-point character) or
42 .It
43-a hexadecimal significand consisting of a ``0X'' or ``0x'' followed
44-by a sequence of hexadecimal digits optionally containing a
45-decimal-point character.
46+a hexadecimal significand, consisting of a ``0X'' or ``0x'' followed
47+by a sequence of hexadecimal digits
48+(optionally containing a decimal-point character).
49 .El
50 .Pp
51 In both cases, the significand may be optionally followed by an
1f2f436a 52@@ -116,6 +126,12 @@ function) are skipped.
3d9156a7
A
53 The decimal point
54 character is defined in the program's locale (category
55 .Dv LC_NUMERIC ) .
56+.Pp
57+Extended locale versions of these functions are documented in
58+.Xr strtod_l 3 .
59+See
60+.Xr xlocale 3
61+for more information.
62 .Sh RETURN VALUES
63 The
64 .Fn strtod ,
1f2f436a 65@@ -161,6 +177,7 @@ Overflow or underflow occurred.
224c7076 66 .Xr atoi 3 ,
3d9156a7 67 .Xr atol 3 ,
1f2f436a 68 .Xr nan 3 ,
224c7076 69+.Xr strtod_l 3 ,
3d9156a7
A
70 .Xr strtol 3 ,
71 .Xr strtoul 3 ,
224c7076 72 .Xr wcstod 3
1f2f436a
A
73@@ -169,8 +186,7 @@ The
74 .Fn strtod
75 function
76 conforms to
77-.St -isoC-99 ,
78-with the exception of the bug noted below.
79+.St -isoC-99 .
80 .Sh AUTHORS
81 The author of this software is
82 .An David M. Gay .