![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Convert a multibyte character into a wide character (restartable)
#include <wchar.h>
size_t mbrtowc( wchar_t * pwc,
const char * s,
size_t n,
mbstate_t * ps );
You can call mbsinit() to determine the status of this variable.
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The mbrtowc() function converts single multibyte characters pointed to by s into wide characters pointed to by pwc, to a maximum of n bytes (not characters).
This function is affected by LC_TYPE.
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
"Multibyte character functions," "Stream I/O functions," and "Wide-character functions" in the summary of functions chapter.
![]() |
![]() |
![]() |
![]() |