]> git.saurik.com Git - apple/libc.git/blob - locale/FreeBSD/localeconv.3.patch
6a8e4597ade5e7c3c25de55b985a279f6d741e5b
[apple/libc.git] / locale / FreeBSD / localeconv.3.patch
1 --- localeconv.3.orig 2009-11-09 15:05:25.000000000 -0800
2 +++ localeconv.3 2009-11-09 15:05:26.000000000 -0800
3 @@ -36,14 +36,22 @@
4 .Dt LOCALECONV 3
5 .Os
6 .Sh NAME
7 -.Nm localeconv
8 +.Nm localeconv ,
9 +.Nm localeconv_l
10 .Nd natural language formatting for C
11 .Sh LIBRARY
12 .Lb libc
13 .Sh SYNOPSIS
14 .In locale.h
15 .Ft struct lconv *
16 -.Fn localeconv "void"
17 +.Fo localeconv
18 +.Fa "void"
19 +.Fc
20 +.In xlocale.h
21 +.Ft struct lconv *
22 +.Fo localeconv_l
23 +.Fa "locale_t loc"
24 +.Fc
25 .Sh DESCRIPTION
26 The
27 .Fn localeconv
28 @@ -197,6 +205,14 @@ a value that is not in the current local
29 A
30 .Dv CHAR_MAX
31 result similarly denotes an unavailable value.
32 +.Pp
33 +While the
34 +.Fn localeconv
35 +function uses the current locale, the
36 +.Fn localeconv_l
37 +function may be passed a locale directly. See
38 +.Xr xlocale 3
39 +for more information.
40 .Sh RETURN VALUES
41 The
42 .Fn localeconv
43 @@ -209,7 +225,8 @@ or
44 No errors are defined.
45 .Sh SEE ALSO
46 .Xr setlocale 3 ,
47 -.Xr strfmon 3
48 +.Xr strfmon 3 ,
49 +.Xr xlocale 3
50 .Sh STANDARDS
51 The
52 .Fn localeconv