This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Convert a wide character to a single-byte code
#include <wchar.h> int wctob( wint_t c );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wctob() function returns the single-byte representation of a wide character.
This function is affected by LC_CTYPE.
The single-byte representation, or EOF if c isn't a valid single-byte character.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.