]> git.saurik.com Git - apple/libc.git/blobdiff - locale/FreeBSD/wctomb.3.patch
Libc-498.tar.gz
[apple/libc.git] / locale / FreeBSD / wctomb.3.patch
index fb49db6eb4ee15b198e7b20a19924c6399d7cfd7..36d28db6161ed28b0011b83c60c63887b6e1806e 100644 (file)
@@ -1,6 +1,6 @@
---- wctomb.3.orig      Fri Mar 11 19:44:47 2005
-+++ wctomb.3   Fri Mar 11 19:47:38 2005
-@@ -41,7 +41,8 @@
+--- _SB/Libc/locale/FreeBSD/wctomb.3   2004-11-25 11:38:20.000000000 -0800
++++ _SB/Libc/locale/FreeBSD/wctomb.3.edit      2006-06-28 16:55:51.000000000 -0700
+@@ -41,37 +41,56 @@
  .Dt WCTOMB 3
  .Os
  .Sh NAME
  .Nd convert a wide-character code to a character
  .Sh LIBRARY
  .Lb libc
-@@ -49,6 +50,9 @@
+ .Sh SYNOPSIS
  .In stdlib.h
  .Ft int
- .Fn wctomb "char *mbchar" "wchar_t wchar"
+-.Fn wctomb "char *mbchar" "wchar_t wchar"
++.Fo wctomb
++.Fa "char *s"
++.Fa "wchar_t wchar"
++.Fc
++.In stdlib.h
 +.In xlocale.h
 +.Ft int
-+.Fn wctomb_l "char *mbchar" "wchar_t wchar" "locale_t loc"
++.Fo wctomb_l
++.Fa "char *s"
++.Fa "wchar_t wchar"
++.Fa "locale_t loc"
++.Fc
  .Sh DESCRIPTION
  The
  .Fn wctomb
-@@ -69,6 +73,14 @@
+-function converts a wide character
+-.Fa wchar
+-into a multibyte character and stores
+-the result in
+-.Fa mbchar .
++function converts a wide character,
++.Fa wchar ,
++into a multibyte character and stores the result in
++.Fa s .
+ The object pointed to by
+-.Fa mbchar
+-must be large enough to accommodate the multibyte character, which
+-may be up to
++.Fa s
++must be large enough to accommodate the multibyte character,
++which may be up to
+ .Dv MB_LEN_MAX
+ bytes.
+ .Pp
+ A call with a null
+-.Fa mbchar
++.Fa s
  pointer returns nonzero if the current locale requires shift states,
  zero otherwise;
  if shift states are required, the shift state is reset to the initial state.
 +.Pp
-+While the
++Although the
 +.Fn wctomb
 +function uses the current locale, the
 +.Fn wctomb_l
 +for more information.
  .Sh RETURN VALUES
  If
- .Fa mbchar
-@@ -104,7 +116,8 @@
+-.Fa mbchar
++.Fa s
+ is
+ .Dv NULL ,
+ the
+@@ -79,12 +98,12 @@
+ function returns nonzero if shift states are supported,
+ zero otherwise.
+ If
+-.Fa mbchar
++.Fa s
+ is valid,
+ .Fn wctomb
+ returns
+ the number of bytes processed in
+-.Fa mbchar ,
++.Fa s ,
+ or \-1 if no multibyte character
+ could be recognized or converted.
+ In this case,
+@@ -104,7 +123,8 @@
  .Xr mbtowc 3 ,
  .Xr wcrtomb 3 ,
  .Xr wcstombs 3 ,