Convert a single-byte character to a wide character
#include <wchar.h> wint_t btowc( int c );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
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().
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.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |