1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
10 .\" References consulted:
11 .\" GNU glibc-2 source code and manual
12 .\" Dinkumware C library reference http://www.dinkumware.com/
13 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
16 .TH BTOWC 3 2015-08-08 "GNU" "Linux Programmer's Manual"
18 btowc \- convert single byte to wide character
23 .BI "wint_t btowc(int " c );
28 function converts \fIc\fP,
29 interpreted as a multibyte sequence
30 of length 1, starting in the initial shift state, to a wide character and
34 or not a valid multibyte sequence of length 1,
42 function returns the wide character
43 converted from the single byte \fIc\fP.
46 or not a valid multibyte sequence of length 1,
50 For an explanation of the terms used in this section, see
56 Interface Attribute Value
59 T} Thread safety MT-Safe
62 POSIX.1-2001, POSIX.1-2008, C99.
71 This function should never be used.
72 It does not work for encodings which have
73 state, and unnecessarily treats single bytes differently from multibyte