[Previous] [Contents] [Next]

wctob()

Convert a wide character to a single-byte code

Synopsis:

#include <wchar.h>

int wctob( wint_t c );

Library:

libc

Description:

The wctob() function returns the single-byte representation of a wide character.

This function is affected by LC_CTYPE.

Returns:

EOF
Failure; an invalid single-byte character.
x
Success; the single-byte representation.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]