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 multibyte 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 multibyte 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

NOTES

30       The behavior of wctob() depends on the LC_CTYPE category of the current
31       locale.
32
33       This  function  should  never be used.  Internationalized programs must
34       never distinguish single-byte and multibyte characters.  Use the  func‐
35       tion wctomb(3) instead.
36

SEE ALSO

38       btowc(3), wctomb(3)
39

COLOPHON

41       This  page  is  part of release 3.25 of the Linux man-pages project.  A
42       description of the project, and information about reporting  bugs,  can
43       be found at http://www.kernel.org/doc/man-pages/.
44
45
46
47GNU                               2009-02-04                          WCTOB(3)
Impressum