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 - (one byte) convert multi-byte character to wide character

&pagelevel(4)&pagelevel

Syntax

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

wint_t btowc(int c);

Description btowc() converts the multi-byte character c that consists of one byte and that must be in

the “initial shift” state to a wide character.

Return val.

wide character if successful.

WEOF

if c contains the value EOF or (unsigned char)c does not represent a
(1 byte) multi-byte character in the “initial shift” state.

Notes

In this version of the C runtime system only 1 byte characters are supported as multi-byte
characters.
The shift state of the multi-byte character is ignored.

See also

mblen(), mbtowc(), wcstombs(), wctomb()