Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

btowc - Convert (one-byte) multibyte character to wide character

&pagelevel(4)&pagelevel

Definition

#include <stdio.h>
#include <wchar.h>

wint_t btowc(int c);

btowc converts a multibyte character c, which must consist of one byte and be in the initial
shift state, to a wide character.

Return val.

Wide character, if successful.

WEOF

if c has the value EOF or if (unsigned char)c does not represent a valid
(one-byte) multibyte character in the initial shift state.

Note

This version of the C runtime system only supports one-byte characters as wide character
codes or multibyte characters.
The shift state of the multibyte character is ignored.

See also

mblen, mbtowc, wcstombs, wctomb