]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/iswgraph.3
9b42c5bd07bc512fe08b44c0c638199df094954b
[thirdparty/man-pages.git] / man3 / iswgraph.3
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/
11 .\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
12 .\" ISO/IEC 9899:1999
13 .\"
14 .TH ISWGRAPH 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15 .SH NAME
16 iswgraph \- 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
24 The \fBiswgraph\fP function is the wide-character equivalent of the
25 \fBisgraph\fP function. It tests whether \fIwc\fP is a wide character
26 belonging to the wide character class "graph".
27 .PP
28 The wide character class "graph" is a subclass of the wide character class
29 "print".
30 .PP
31 Being a subclass of the wide character class "print", the wide character class
32 "graph" is disjoint from the wide character class "cntrl".
33 .PP
34 The wide character class "graph" is disjoint from the wide character class
35 "space" and therefore also disjoint from its subclass "blank".
36 .\" Note: UNIX98 (susv2/xbd/locale.html) says that "graph" and "space" may
37 .\" have characters in common, except U+0020. But ISO C99 (ISO/IEC 9899:1999
38 .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
39 .PP
40 The wide character class "graph" contains all the wide characters from the
41 wide character class "print" except the space character. It therefore contains
42 the wide character classes "alnum" and "punct".
43 .SH "RETURN VALUE"
44 The \fBiswgraph\fP function returns non-zero if \fIwc\fP is a wide character
45 belonging to the wide character class "graph". Otherwise it returns zero.
46 .SH "CONFORMING TO"
47 ISO/ANSI C, UNIX98
48 .SH "SEE ALSO"
49 .BR isgraph (3),
50 .BR iswctype (3)
51 .SH NOTES
52 The behaviour of \fBiswgraph\fP depends on the LC_CTYPE category of the
53 current locale.