This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Convert a UTF-8 character to a wide-character code
int utf8towc( wchar_t *pwc, const char *s, size_t n );
ph
The utf8towc() function converts a single UTF-8 character pointed to by s into a wide-character code pointed to by pwc, to a maximum of n bytes.
This function is similar to mbtowc(), except:
Photon
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
Unicode Multilingual Support in the Photon Programmer's Guide
mbtowc() in the QNX Neutrino Library Reference