btowc

Converts a single byte to a wide-character code.

Library:LibC
Classification:ANSI
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wint_t btowc (
     int   c);
  

Parameters

c

(IN) Specifies the character code to convert.

Return Values

If successful, returns the wide-character representation of the character. Otherwise, returns WEOF if c has a value of EOF or is not a valid (one-byte) character in the initial shift state.

Remarks

The btowc function works relative to the locale of the local host.

See Also

wctob