User Tools

Site Tools


solaris:btowc.3c

btowc


NAME

btowc - single-byte to wide-character conversion

SYNOPSIS

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

wint_t btowc(int c);

DESCRIPTION

The btowc() function determines whether c constitutes a valid (one-byte) character in the initial shift state.

The behavior of this function is affected by the LC_CTYPE category of the current locale. See environ(7).

RETURN VALUES

The btowc() function returns WEOF if c has the value EOF or if (unsigned char)c does not constitute a valid (one-byte) character in the initial shift state. Otherwise, it returns the wide-character representation of that character.

ERRORS

No errors are defined.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

SEE ALSO

setlocale(3C), wctob(3C), attributes(7), environ(7), standards(7)


solaris/btowc.3c.txt · Last modified: 2023/07/19 08:58 by A User Not Logged in