]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- strtod.3 2004-11-25 11:38:42.000000000 -0800 |
2 | +++ strtod.3.edit 2006-08-09 13:42:36.000000000 -0700 | |
3 | @@ -49,11 +49,20 @@ | |
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 | |
27 | @@ -66,16 +75,17 @@ | |
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 | |
52 | @@ -100,6 +110,12 @@ | |
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 , | |
224c7076 A |
65 | @@ -144,6 +160,7 @@ |
66 | .Xr atof 3 , | |
67 | .Xr atoi 3 , | |
3d9156a7 | 68 | .Xr atol 3 , |
224c7076 | 69 | +.Xr strtod_l 3 , |
3d9156a7 A |
70 | .Xr strtol 3 , |
71 | .Xr strtoul 3 , | |
224c7076 | 72 | .Xr wcstod 3 |