Namespaces
Variants
Views
Actions

btowc

From cppreference.com
< c‎ | string‎ | multibyte
Revision as of 17:18, 2 November 2012 by P12bot (Talk | contribs)

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.

Contents

Parameters

c - single-byte character to widen

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.

Example

See also

Template:c/string/multibyte/dcl list wctob