btowc

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at btowc.

Determine whether an integer represents a valid single-byte character in the initial shift state.

Syntax

wint_t btowc(  
   int c  
);  

Parameters

c
Integer to test.

Return Value

Returns the wide-character representation of the character if the integer represents a valid single-byte character in the initial shift state. Returns WEOF if the integer is EOF or is not a valid single-byte character in the initial shift state. The output of this function is affected by the current LC_TYPE locale.

Requirements

Routine Required header
btowc <stdio.h> or <wchar.h>

For additional compatibility information, see Compatibility in the Introduction.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

mbtowc, _mbtowc_l