malloc_get_state.3: tfix
[man-pages.git] / man3 / iswgraph.3
blob9cfb3a6dcca67c11d0a1ef8cc760b46e7da1fb59
1 '\" t
2 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
3 .\"
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
5 .\"
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
10 .\"   ISO/IEC 9899:1999
11 .\"
12 .TH iswgraph 3 (date) "Linux man-pages (unreleased)"
13 .SH NAME
14 iswgraph \- test for graphic wide character
15 .SH LIBRARY
16 Standard C library
17 .RI ( libc ", " \-lc )
18 .SH SYNOPSIS
19 .nf
20 .B #include <wctype.h>
22 .BI "int iswgraph(wint_t " wc );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR iswgraph ()
27 function is the wide-character equivalent of the
28 .BR isgraph (3)
29 function.
30 It tests whether
31 .I wc
32 is a wide character
33 belonging to the wide-character class "graph".
35 The wide-character class "graph" is a subclass of the wide-character class
36 "print".
38 Being a subclass of the wide-character class "print",
39 the wide-character class
40 "graph" is disjoint from the wide-character class "cntrl".
42 The wide-character class "graph" is disjoint from the wide-character class
43 "space" and therefore also disjoint from its subclass "blank".
44 .\" Note: UNIX98 (susv2/xbd/locale.html) says that "graph" and "space" may
45 .\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999
46 .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
48 The wide-character class "graph" contains all the wide characters from the
49 wide-character class "print" except the space character.
50 It therefore contains
51 the wide-character classes "alnum" and "punct".
52 .SH RETURN VALUE
53 The
54 .BR iswgraph ()
55 function returns nonzero
57 .I wc
58 is a wide character
59 belonging to the wide-character class "graph".
60 Otherwise, it returns zero.
61 .SH ATTRIBUTES
62 For an explanation of the terms used in this section, see
63 .BR attributes (7).
64 .TS
65 allbox;
66 lbx lb lb
67 l l l.
68 Interface       Attribute       Value
70 .na
71 .nh
72 .BR iswgraph ()
73 T}      Thread safety   MT-Safe locale
74 .TE
75 .SH STANDARDS
76 C11, POSIX.1-2008.
77 .SH HISTORY
78 POSIX.1-2001, C99.
79 .SH NOTES
80 The behavior of
81 .BR iswgraph ()
82 depends on the
83 .B LC_CTYPE
84 category of the
85 current locale.
86 .SH SEE ALSO
87 .BR isgraph (3),
88 .BR iswctype (3)