btowc()
QNX SDP8.0C Library ReferenceAPIDeveloper
Convert a single-byte character to a wide character
Synopsis:
#include <wchar.h>
wint_t btowc( int c );
Arguments:
- c
- The single-byte character that you want to convert.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The btowc() function converts the given character (if it's a valid one-byte character in the initial shift state) into a wide character.
This function is the single-byte version of mbtowc().
Returns:
The wide-character representation of the character, or WEOF if c has the value EOF or (unsigned char) c isn't a valid one-byte character in the initial conversion state.
Classification:
Safety: | |
---|---|
Cancellation point | No |
Signal handler | Yes |
Thread | Yes |
Page updated: