btowc -- Convert Single Byte to Wide Character

Format

#include <stdio.h>
#include <wchar.h>
int btowc(wint_t c);

Language Level: ANSI 93
btowc determines whether c constitutes a valid (one-byte) multibyte character in the initial shift state.

Return Value
If c has the value EOF, or if (unsigned char) c does not constitute a valid (one-byte) multibyte character in the initial shift state, btowc returns WEOF.

Otherwise, btowc returns the wide-character representation of that character.

Example



mblen -- Determine Length of Multibyte Character
mbtowc -- Convert Multibyte Character to Wide Character
mbrtowc -- Convert Multibyte Character to Wide Character
mbstowcs -- Convert Multibyte String to Wide-Character String
mbsrtowcs -- Convert Multibyte String to Wide-Character String
setlocale -- Set Locale
wcrtomb -- Convert Wide Character to Multibyte Character
wcsrtombs -- Convert Wide-Character String to Multibyte String
<stdio.h>
<wchar.h>