Convert a single-byte character to a wide character
#include <wchar.h> wint_t btowc( int c );
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.
ANSI, POSIX 1003.1
"Character manipulation functions" and "Wide-character functions" in the summary of functions chapter.