---- mbrlen.3.orig Fri Mar 11 19:44:47 2005
-+++ mbrlen.3 Fri Mar 11 19:56:39 2005
-@@ -28,7 +28,8 @@
+--- mbrlen.3.orig 2009-11-09 15:05:25.000000000 -0800
++++ mbrlen.3 2009-11-09 15:05:25.000000000 -0800
+@@ -28,21 +28,35 @@
.Dt MBRLEN 3
.Os
.Sh NAME
.Nd "get number of bytes in a character (restartable)"
.Sh LIBRARY
.Lb libc
-@@ -36,6 +37,9 @@
+ .Sh SYNOPSIS
.In wchar.h
.Ft size_t
- .Fn mbrlen "const char * restrict s" "size_t n" "mbstate_t * restrict ps"
+-.Fn mbrlen "const char * restrict s" "size_t n" "mbstate_t * restrict ps"
++.Fo mbrlen
++.Fa "const char *restrict s"
++.Fa "size_t n"
++.Fa "mbstate_t *restrict ps"
++.Fc
++.In wchar.h
+.In xlocale.h
+.Ft size_t
-+.Fn mbrlen_l "const char * restrict s" "size_t n" "mbstate_t * restrict ps" "locale_t loc"
++.Fo mbrlen_l
++.Fa "const char *restrict s"
++.Fa "size_t n"
++.Fa "mbstate_t *restrict ps"
++.Fa "locale_t loc"
++.Fc
.Sh DESCRIPTION
The
.Fn mbrlen
-@@ -72,6 +76,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.
+ .Pp
+@@ -63,7 +77,7 @@ It is equivalent to:
+ .Pp
+ .Dl "mbrtowc(NULL, s, n, ps);"
+ .Pp
+-Except that when
++Except that, when
+ .Fa ps
+ is a
+ .Dv NULL
+@@ -72,6 +86,14 @@ pointer,
uses its own static, internal
.Vt mbstate_t
object to keep track of the shift state.
+.Pp
-+While the
++Although the
+.Fn mbrlen
+function uses the current locale, the
+.Fn mbrlen_l
.Sh RETURN VALUES
The
.Fn mbrlen
-@@ -137,7 +149,8 @@
+@@ -137,7 +159,8 @@ The conversion state is invalid.
.Sh SEE ALSO
.Xr mblen 3 ,
.Xr mbrtowc 3 ,