Debian Codegraph @

upstream/debian-unstable/man3/mbsinit.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH mbsinit 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 mbsinit
10 \-
11 test for initial shift state
12 .SH LIBRARY
13 Standard C library
14 .RI ( libc ,\~ \-lc )
15 .SH SYNOPSIS
16 .nf
17 .B #include <wchar.h>
18 .P
19 .BI "int mbsinit(const mbstate_t *" ps );
20 .fi
21 .SH DESCRIPTION
22 The function
23 .BR mbsinit ()
24 tests whether
25 .I *ps
26 corresponds to an
27 initial shift state.
28 .SH RETURN VALUE
29 .BR mbsinit ()
30 returns nonzero if
31 .I *ps
32 is an initial shift state, or if
33 .I ps
34 is NULL.
35 Otherwise, it returns 0.
36 .SH ATTRIBUTES
37 For an explanation of the terms used in this section, see
38 .BR attributes (7).
39 .TS
40 allbox;
41 lbx lb lb
42 l l l.
43 Interface Attribute Value
44 T{
45 .na
46 .nh
47 .BR mbsinit ()
48 T} Thread safety MT-Safe
49 .TE
50 .SH STANDARDS
51 C11, POSIX.1-2008.
52 .SH HISTORY
53 POSIX.1-2001, C99.
54 .SH NOTES
55 The behavior of
56 .BR mbsinit ()
57 depends on the
58 .B LC_CTYPE
59 category of the
60 current locale.
61 .SH SEE ALSO
62 .BR mbstate_t (3type),
63 .BR mbrlen (3),
64 .BR mbrtowc (3),
65 .BR mbsrtowcs (3),
66 .BR wcrtomb (3),
67 .BR wcsrtombs (3)