1WCTOB(3)                   Linux Programmer's Manual                  WCTOB(3)
2
3
4

NAME

6       wctob - try to represent a wide character as a single byte
7

SYNOPSIS

9       #include <wchar.h>
10
11       int wctob(wint_t c);
12

DESCRIPTION

14       The wctob() function tests whether the multi-byte representation of the
15       wide character c, starting in the initial state, consists of  a  single
16       byte. If so, it is returned as an unsigned char.
17
18       Never  use  this function. It cannot help you in writing international‐
19       ized programs. Internationalized programs must never  distinguish  sin‐
20       gle-byte and multi-byte characters.
21

RETURN VALUE

23       The wctob() function returns the single-byte representation of c, if it
24       exists, of EOF otherwise.
25

CONFORMING TO

27       C99.
28

SEE ALSO

30       wctomb(3)
31

NOTES

33       The behaviour of wctob() depends on the LC_CTYPE category of  the  cur‐
34       rent locale.
35
36       This  function  should  never  be used. Internationalized programs must
37       never distinguish single-byte and multi-byte characters. Use the  func‐
38       tion wctomb() instead.
39
40
41
42GNU                               1999-07-25                          WCTOB(3)
Impressum