|
NAMEmbrtowc , mbrtoc16 ,
mbrtoc32 —
convert a character to a wide-character code (restartable)
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wchar.h>
size_t
size_t
size_t
DESCRIPTIONThembrtowc (), mbrtoc16 () and
mbrtoc32 () functions inspect at most
n bytes pointed to by s to
determine the number of bytes needed to complete the next multibyte character.
If a character can be completed, and pc is not
NULL , the wide character which is represented by
s is stored in the wchar_t,
char16_t or char32_t it points to.
If s is The mbstate_t argument,
ps, is used to keep track of the shift state. If it is
As a single char16_t is not large enough to
represent certain multibyte characters, the
RETURN VALUESThembrtowc (), mbrtoc16 () and
mbrtoc32 () functions return:
The
ERRORSThembrtowc (), mbrtoc16 () and
mbrtoc32 () functions will fail if:
SEE ALSOmbtowc(3), multibyte(3), setlocale(3), wcrtomb(3)STANDARDSThembrtowc (), mbrtoc16 () and
mbrtoc32 () functions conform to
ISO/IEC 9899:2011 (“ISO C11”).
Visit the GSP FreeBSD Man Page Interface. |