]> git.saurik.com Git - apple/libc.git/blame - locale/FreeBSD/mblen.3.patch
Libc-391.2.3.tar.gz
[apple/libc.git] / locale / FreeBSD / mblen.3.patch
CommitLineData
3d9156a7
A
1--- mblen.3.orig Fri Mar 11 19:44:47 2005
2+++ mblen.3 Fri Mar 11 19:57:09 2005
3@@ -41,7 +41,8 @@
4 .Dt MBLEN 3
5 .Os
6 .Sh NAME
7-.Nm mblen
8+.Nm mblen ,
9+.Nm mblen_l
10 .Nd get number of bytes in a character
11 .Sh LIBRARY
12 .Lb libc
13@@ -49,6 +50,9 @@
14 .In stdlib.h
15 .Ft int
16 .Fn mblen "const char *mbchar" "size_t nbytes"
17+.In xlocale.h
18+.Ft int
19+.Fn mblen_l "const char *mbchar" "size_t nbytes" "locale_t loc"
20 .Sh DESCRIPTION
21 The
22 .Fn mblen
23@@ -65,6 +69,14 @@
24 pointer returns nonzero if the current locale requires shift states,
25 zero otherwise;
26 if shift states are required, the shift state is reset to the initial state.
27+.Pp
28+While the
29+.Fn mblen
30+function uses the current locale, the
31+.Fn mblen_l
32+function may be passed a locale directly. See
33+.Xr xlocale 3
34+for more information.
35 .Sh RETURN VALUES
36 If
37 .Fa mbchar
38@@ -102,7 +114,8 @@
39 .Sh SEE ALSO
40 .Xr mbrlen 3 ,
41 .Xr mbtowc 3 ,
42-.Xr multibyte 3
43+.Xr multibyte 3 ,
44+.Xr xlocale 3
45 .Sh STANDARDS
46 The
47 .Fn mblen