wctob

Converts a wide-character code to a single byte representation.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  int  wctob (
     wint_t   wc);
  

Parameters

wc

(IN) Specifies the wide-character code to convert.

Return Values

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.

Remarks

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.

See Also