Convert a single-byte character to a wide character
#include <wchar.h> wint_t btowc( int c );
- The single-byte character that you want to convert.
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.