Next: mbtowc
, Previous: mbsrtowcs
, Up: ISO C and POSIX Function Substitutes [Contents][Index]
mbstowcs
POSIX specification:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/mbstowcs.html
Gnulib module: mbstowcs
Portability problems fixed by Gnulib:
(size_t) -1
and set errno
to EILSEQ
:
glibc 2.35.
Portability problems not fixed by Gnulib:
wchar_t
is a 16-bit type and
therefore cannot accommodate all Unicode characters.
However, the Gnulib function mbstoc32s
, provided by Gnulib module
mbstoc32s
, operates on 32-bit wide characters and therefore does not
have this limitation.