]> git.saurik.com Git - apple/libc.git/blob - stdlib/FreeBSD/atof.3.patch
Libc-391.4.1.tar.gz
[apple/libc.git] / stdlib / FreeBSD / atof.3.patch
1 --- atof.3.orig Fri Mar 11 10:10:58 2005
2 +++ atof.3 Fri Mar 11 10:12:33 2005
3 @@ -40,7 +40,8 @@
4 .Dt ATOF 3
5 .Os
6 .Sh NAME
7 -.Nm atof
8 +.Nm atof ,
9 +.Nm atof_l
10 .Nd convert
11 .Tn ASCII
12 string to double
13 @@ -50,6 +51,9 @@
14 .In stdlib.h
15 .Ft double
16 .Fn atof "const char *nptr"
17 +.In xlocale.h
18 +.Ft double
19 +.Fn atof_l "const char *nptr" "locale_t loc"
20 .Sh DESCRIPTION
21 The
22 .Fn atof
23 @@ -67,6 +71,14 @@
24 The decimal point
25 character is defined in the program's locale (category
26 .Dv LC_NUMERIC ) .
27 +.Pp
28 +While the
29 +.Fn atof
30 +function uses the current locale, the
31 +.Fn atof_l
32 +function may be passed a locale directly. See
33 +.Xr xlocale 3
34 +for more information.
35 .Sh IMPLEMENTATION NOTES
36 The
37 .Fn atof
38 @@ -88,7 +100,8 @@
39 .Xr atol 3 ,
40 .Xr strtod 3 ,
41 .Xr strtol 3 ,
42 -.Xr strtoul 3
43 +.Xr strtoul 3 ,
44 +.Xr xlocale 3
45 .Sh STANDARDS
46 The
47 .Fn atof