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

NAME

6       btowc - convert single byte to wide character
7

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

CONFORMING TO

25       C99, POSIX.1-2001.
26

SEE ALSO

28       mbtowc(3)
29

NOTES

31       The behaviour of btowc() depends on the LC_CTYPE category of  the  cur‐
32       rent locale.
33
34       This  function  should  never  be  used. It does not work for encodings
35       which have state, and unnecessarily  treats  single  bytes  differently
36       from multibyte sequences. Use the function mbtowc() instead.
37
38
39
40GNU                               1999-07-25                          BTOWC(3)
Impressum