Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 8

wctoutf8()

Convert a wide-character code into a UTF-8 character

Synopsis:

int wctoutf8( char *s,
              wchar_t wc );

Arguments:

s
A pointer to a location where wctoutf8() stores the UTF-8 character corresponding to wc.
wc
The wide character to be converted.

Library:

ph

Description:

The wctoutf8() function stores the multibyte representation corresponding to the code contained in wc in the array pointed to by s. This function stores at most MB_CUR_MAX characters.

The wctoutf8() function is similar to wctomb(), except:

Returns:

-1
The value of wc doesn't correspond to a valid multibyte character.
> 0
The number of bytes that comprise the multibyte character corresponding to the value of wc.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

utf8towc()

Unicode Multilingual Support in the Photon Programmer's Guide

wctomb() in the QNX Neutrino Library Reference


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 142

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/wc/wctoutf8.html on line 142