---- mbrtowc.3.orig Fri Mar 11 19:44:47 2005
-+++ mbrtowc.3 Fri Mar 11 19:55:59 2005
+--- _SB/Libc/locale/FreeBSD/mbrtowc.3 2004-11-25 11:38:18.000000000 -0800
++++ _SB/Libc/locale/FreeBSD/mbrtowc.3.edit 2006-06-29 11:10:29.000000000 -0700
@@ -28,7 +28,8 @@
.Dt MBRTOWC 3
.Os
.Nd "convert a character to a wide-character code (restartable)"
.Sh LIBRARY
.Lb libc
-@@ -39,6 +40,12 @@
- .Fa "wchar_t * restrict pwc" "const char * restrict s" "size_t n"
- .Fa "mbstate_t * restrict ps"
- .Fc
+@@ -36,16 +37,28 @@
+ .In wchar.h
+ .Ft size_t
+ .Fo mbrtowc
+-.Fa "wchar_t * restrict pwc" "const char * restrict s" "size_t n"
+-.Fa "mbstate_t * restrict ps"
++.Fa "wchar_t *restrict pwc"
++.Fa "const char *restrict s"
++.Fa "size_t n"
++.Fa "mbstate_t *restrict ps"
++.Fc
++.In wchar.h
+.In xlocale.h
+.Ft size_t
+.Fo mbrtowc_l
-+.Fa "wchar_t * restrict pwc" "const char * restrict s" "size_t n"
-+.Fa "mbstate_t * restrict ps" "locale_t loc"
-+.Fc
++.Fa "wchar_t *restrict pwc"
++.Fa "const char *restrict s"
++.Fa "size_t n"
++.Fa "mbstate_t *restrict ps"
++.Fa "locale_t loc"
+ .Fc
.Sh DESCRIPTION
The
.Fn mbrtowc
-@@ -86,6 +93,14 @@
+ function inspects at most
+ .Fa n
+-bytes pointed to by
+-.Fa s
++bytes, pointed to by
++.Fa s ,
+ to determine the number of bytes needed to complete the next multibyte
+ character.
+ If a character can be completed, and
+@@ -65,14 +78,14 @@
+ .Fn mbrtowc
+ behaves as if
+ .Fa pwc
+-was
++were
+ .Dv NULL ,
+ .Fa s
+-was an empty string
+-.Pq Qq
++were an empty string
++.Pq Qq ,
+ and
+ .Fa n
+-was 1.
++were 1.
+ .Pp
+ The
+ .Vt mbstate_t
+@@ -86,6 +99,14 @@
.Vt mbstate_t
object, which is initialized to the initial conversion state
at program startup.
.Sh RETURN VALUES
The
.Fn mbrtowc
-@@ -131,7 +146,8 @@
+@@ -131,7 +152,8 @@
.Xr mbtowc 3 ,
.Xr multibyte 3 ,
.Xr setlocale 3 ,