summaryrefslogtreecommitdiffstats
path: root/lib/libc/locale/btowc.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/locale/btowc.3')
-rw-r--r--lib/libc/locale/btowc.39
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/locale/btowc.3 b/lib/libc/locale/btowc.3
index 9eca437..d9c3e9c 100644
--- a/lib/libc/locale/btowc.3
+++ b/lib/libc/locale/btowc.3
@@ -39,6 +39,12 @@
.Fn btowc "int c"
.Ft int
.Fn wctob "wint_t c"
+.In wchar.h
+.In xlocale.h
+.Ft wint_t
+.Fn btowc "int c"
+.Ft int
+.Fn wctob "wint_t c"
.Sh DESCRIPTION
The
.Fn btowc
@@ -59,6 +65,9 @@ or not able to be represented as a single byte in the initial shift state,
.Fn wctob
returns
.Dv EOF .
+.Pp
+The _l-suffixed versions take an explicit locale argument, while the
+non-suffixed versions use the current global or per-thread locale.
.Sh SEE ALSO
.Xr mbrtowc 3 ,
.Xr multibyte 3 ,
OpenPOWER on IntegriCloud