]> git.saurik.com Git - apple/libc.git/blame - stdlib/FreeBSD/strfmon.3.patch
Libc-391.5.22.tar.gz
[apple/libc.git] / stdlib / FreeBSD / strfmon.3.patch
CommitLineData
3d9156a7
A
1--- strfmon.3.orig Fri Mar 11 10:06:33 2005
2+++ strfmon.3 Fri Mar 11 10:20:51 2005
3@@ -28,14 +28,18 @@
4 .Dt STRFMON 3
5 .Os
6 .Sh NAME
7-.Nm strfmon
8+.Nm strfmon ,
9+.Nm strfmon_l
10 .Nd convert monetary value to string
11 .Sh LIBRARY
12 .Lb libc
9385eb3d
A
13 .Sh SYNOPSIS
14 .In monetary.h
15 .Ft ssize_t
16-.Fn strfmon "char * restrict s" "size_t maxsize" "const char * restrict format" "..."
17+.Fn strfmon "char * s" "size_t maxsize" "const char *format" "..."
3d9156a7
A
18+.In xlocale.h
19+.Ft ssize_t
20+.Fn strfmon_l "char * s" "size_t maxsize" "locale_t loc" "const char *format" "..."
9385eb3d
A
21 .Sh DESCRIPTION
22 The
23 .Fn strfmon
3d9156a7
A
24@@ -47,6 +51,14 @@
25 .Fa maxsize
26 bytes are placed into the array.
27 .Pp
28+While the
29+.Fn strfmon
30+function uses the current locale, the
31+.Fn strfmon_l
32+function may be passed a locale directly. See
33+.Xr xlocale 3
34+for more information.
35+.Pp
36 The format string is composed of zero or more directives:
37 ordinary characters (not
38 .Cm % ) ,
39@@ -142,7 +154,8 @@
40 Not enough memory for temporary buffers.
41 .El
42 .Sh SEE ALSO
43-.Xr localeconv 3
44+.Xr localeconv 3 ,
45+.Xr xlocale 3
46 .Sh STANDARDS
47 The
48 .Fn strfmon