nextwctype.3.patch [plain text]
--- nextwctype.3.orig Fri Mar 11 19:44:47 2005
+++ nextwctype.3 Fri Mar 11 19:53:29 2005
@@ -29,7 +29,8 @@
.Dt NEXTWCTYPE 3
.Os
.Sh NAME
-.Nm nextwctype
+.Nm nextwctype ,
+.Nm nextwctype_l
.Nd "iterate through character classes"
.Sh LIBRARY
.Lb libc
@@ -39,6 +40,11 @@
.Fo nextwctype
.Fa "wint_t ch" "wctype_t wct"
.Fc
+.In xlocale.h
+.Ft wint_t
+.Fo nextwctype_l
+.Fa "wint_t ch" "wctype_t wct" "locale_t loc"
+.Fc
.Sh DESCRIPTION
The
.Fn nextwctype
@@ -50,9 +56,18 @@
.Fa ch
is \-1, the search begins at the first member of
.Fa wct .
+.Pp
+While the
+.Fn nextwctype
+function uses the current locale, the
+.Fn nextwctype_l
+function may be passed a locale directly. See
+.Xr xlocale 3
+for more information.
.Sh RETURN VALUES
The
.Fn nextwctype
functions returns the next character, or \-1 if there are no more.
.Sh SEE ALSO
-.Xr wctype 3
+.Xr wctype 3 ,
+.Xr xlocale 3