Next: mbsinit
, Previous: mbrtoc32
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
mbrtowc
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/mbrtowc.html
Gnulib module: mbrtowc
Portability problems fixed by Gnulib:
(size_t) -1
and set errno
to EILSEQ
:
glibc 2.35.
(size_t) -2
when the input
is empty:
glibc 2.19,
MSVC 14, Android 11.
(size_t) -1
instead of (size_t) -2
when the input is empty:
AIX 7.2.
Portability problems not fixed by Gnulib:
wchar_t
is a 16-bit type and
therefore cannot accommodate all Unicode characters.
However, the ISO C11 function mbrtoc32
, provided by Gnulib module
mbrtoc32
, operates on 32-bit wide characters and therefore does not have
this limitation.
Next: mbsinit
, Previous: mbrtoc32
, Up: ISO C and POSIX Function Substitutes [Contents][Index]