2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\" References consulted:
7 .\" GNU glibc-2 source code and manual
8 .\" Dinkumware C library reference http://www.dinkumware.com/
9 .\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
12 .TH btowc 3 (date) "Linux man-pages (unreleased)"
14 btowc \- convert single byte to wide character
17 .RI ( libc ", " \-lc )
22 .BI "wint_t btowc(int " c );
27 function converts \fIc\fP,
28 interpreted as a multibyte sequence
29 of length 1, starting in the initial shift state, to a wide character and
33 or not a valid multibyte sequence of length 1,
41 function returns the wide character
42 converted from the single byte \fIc\fP.
45 or not a valid multibyte sequence of length 1,
49 For an explanation of the terms used in this section, see
57 Interface Attribute Value
60 T} Thread safety MT-Safe
66 POSIX.1-2001, POSIX.1-2008, C99.
75 This function should never be used.
76 It does not work for encodings which have
77 state, and unnecessarily treats single bytes differently from multibyte