wctob()

convert wide character to single byte 

Function


SYNOPSIS

#include <stdio.h>

#include <wchar.h>

int wctob(wint_t c);


DESCRIPTION

The wctob() function determines whether the specified character corresponds to a member of the extended character set whose character representation is a single byte when in the initial shift state. The behavior of this function is affected by the LC_CTYPE category of the current locale.


PARAMETERS

c 

Is the character to test.


RETURN VALUES

The wctob() function returns EOF if c does not correspond to a character with length one in the initial shift state. Otherwise, it returns the single-byte representation of the character.


CONFORMANCE

ANSI/ISO 9899-1990/AM 1-1995


MULTITHREAD SAFETY LEVEL

MT-Safe, with exceptions.

This function is MT-Safe as long as no thread calls setlocale() while this function is executing.


PORTING ISSUES

None.


AVAILABILITY

MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
btowc(), setlocale()


MKS Toolkit 9.2 Documentation Build 16.