##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# btowc

From cppreference.com
< c‎ | string‎ | multibyte

Defined in header `<wchar.h>` |  |
wint_t btowc( int c ); |  |

Widens a single-byte character `c` to its wide character equivalent.

Most multibyte character encodings use single-byte codes to represent the characters from the ASCII character set. This function may be used to convert such characters to wchar_t.

### [edit] Parameters

c | - | single-byte character to widen

### [edit] Return value

WEOF if `c` is EOF

wide character representation of `c` if (unsigned char)c is a valid single-byte character in the initial shift state, WEOF otherwise.

### [edit] Example

| This section is incomplete Reason: no example

### [edit] See also

wctob | narrows a wide character to a single-byte narrow character, if possible (function) [edit]
C++ documentation for btowc

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/string/multibyte/btowc&oldid=56783"
Category:

- Todo no example