]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/iswgraph.3
getent.1, intro.1, time.1, _exit.2, _syscall.2, accept.2, access.2, acct.2, adjtimex...
[thirdparty/man-pages.git] / man3 / iswgraph.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
3.\" This is free documentation; you can redistribute it and/or
4.\" modify it under the terms of the GNU General Public License as
5.\" published by the Free Software Foundation; either version 2 of
6.\" the License, or (at your option) any later version.
7.\"
8.\" References consulted:
9.\" GNU glibc-2 source code and manual
10.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 11.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
12.\" ISO/IEC 9899:1999
13.\"
14.TH ISWGRAPH 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15.SH NAME
16iswgraph \- test for graphic wide character
17.SH SYNOPSIS
18.nf
19.B #include <wctype.h>
20.sp
21.BI "int iswgraph(wint_t " wc );
22.fi
23.SH DESCRIPTION
60a90ecd
MK
24The
25.BR iswgraph ()
26function is the wide-character equivalent of the
27.BR isgraph (3)
28function.
c13182ef 29It tests whether \fIwc\fP is a wide character
d0f17b57 30belonging to the wide-character class "graph".
fea681da 31.PP
d0f17b57 32The wide-character class "graph" is a subclass of the wide-character class
fea681da
MK
33"print".
34.PP
d0f17b57
MK
35Being a subclass of the wide-character class "print",
36the wide-character class
37"graph" is disjoint from the wide-character class "cntrl".
fea681da 38.PP
d0f17b57 39The wide-character class "graph" is disjoint from the wide-character class
fea681da
MK
40"space" and therefore also disjoint from its subclass "blank".
41.\" Note: UNIX98 (susv2/xbd/locale.html) says that "graph" and "space" may
68e1685c 42.\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999
fea681da
MK
43.\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
44.PP
d0f17b57
MK
45The wide-character class "graph" contains all the wide characters from the
46wide-character class "print" except the space character.
1c44bd5b 47It therefore contains
d0f17b57 48the wide-character classes "alnum" and "punct".
47297adb 49.SH RETURN VALUE
60a90ecd
MK
50The
51.BR iswgraph ()
c7094399 52function returns nonzero
1c44bd5b 53if \fIwc\fP is a wide character
d0f17b57 54belonging to the wide-character class "graph".
c13182ef 55Otherwise it returns zero.
47297adb 56.SH CONFORMING TO
68e1685c 57C99.
fea681da 58.SH NOTES
d9bfdb9c 59The behavior of
60a90ecd 60.BR iswgraph ()
1274071a
MK
61depends on the
62.B LC_CTYPE
63category of the
fea681da 64current locale.
47297adb 65.SH SEE ALSO
e37e3282
MK
66.BR isgraph (3),
67.BR iswctype (3)