Converts a wide-character code to a single byte representation.
#include <wchar.h> int wctob ( wint_t wc);
(IN) Specifies the wide-character code to convert.
If successful, returns the single-byte representation of the wide-character code as an unsigned char converted to int. Otherwise, returns EOF if wc does not correspond to a character with length one in the initial shift state.
The wctob function determines whether wc corresponds to a member of the extended character set whose character representation is a single byte when in the initial shift state.