btowc

Converts a one-byte multibyte character to a wide character in the initial shift state.

Format

#include  <wchar.h>

wint_t btowc  (int c);

Arguments

c
The character to be converted to a wide-character representation.

Description

This function determines whether (unsigned char)c is a valid one-byte multibyte character in the initial shift state, and if so, returns a wide-character representation of that character.

Return Values
The wide-character representation of unsigned char c
WEOF  Indicates an error. The c argument has the value EOF or does not constitute a valid one-byte multibyte character in the initial shift state. 


Previous Page | Next Page | Table of Contents | Index