1BTOWC(3) Linux Programmer's Manual BTOWC(3)
2
3
4
6 btowc - convert single byte to wide character
7
9 #include <wchar.h>
10
11 wint_t btowc(int c);
12
14 The btowc() function converts c, interpreted as a multibyte sequence of
15 length 1, starting in the initial shift state, to a wide character and
16 returns it. If c is EOF or not a valid multibyte sequence of length 1,
17 the btowc() function returns WEOF.
18
20 The btowc() function returns the wide character converted from the sin‐
21 gle byte c. If c is EOF or not a valid multibyte sequence of length 1,
22 it returns WEOF.
23
25 C99, POSIX.1-2001.
26
28 The behavior of btowc() depends on the LC_CTYPE category of the current
29 locale.
30
31 This function should never be used. It does not work for encodings
32 which have state, and unnecessarily treats single bytes differently
33 from multibyte sequences. Use the function mbtowc() instead.
34
36 wctob(3), mbtowc(3)
37
39 This page is part of release 3.25 of the Linux man-pages project. A
40 description of the project, and information about reporting bugs, can
41 be found at http://www.kernel.org/doc/man-pages/.
42
43
44
45GNU 2009-02-04 BTOWC(3)