]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/iswspace.3
s/nonzero/non-zero/
[thirdparty/man-pages.git] / man3 / iswspace.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/
11.\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
12.\" ISO/IEC 9899:1999
13.\"
14.TH ISWSPACE 3 1999-07-25 "GNU" "Linux Programmer's Manual"
15.SH NAME
16iswspace \- test for whitespace wide character
17.SH SYNOPSIS
18.nf
19.B #include <wctype.h>
20.sp
21.BI "int iswspace(wint_t " wc );
22.fi
23.SH DESCRIPTION
60a90ecd
MK
24The
25.BR iswspace ()
26function is the wide-character equivalent of the
27.BR isspace (3)
28function.
c13182ef 29It tests whether \fIwc\fP is a wide character
d0f17b57 30belonging to the wide-character class "space".
fea681da 31.PP
d0f17b57 32The wide-character class "space" is disjoint from the wide-character class
fea681da
MK
33"graph" and therefore also disjoint from its subclasses "alnum", "alpha",
34"upper", "lower", "digit", "xdigit", "punct".
35.\" Note: UNIX98 (susv2/xbd/locale.html) says that "space" and "graph" may
68e1685c 36.\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999
fea681da
MK
37.\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
38.PP
d0f17b57 39The wide-character class "space" contains the wide-character class "blank".
fea681da 40.PP
d0f17b57 41The wide-character class "space" always contains at least the space character
fea681da
MK
42and the control characters '\\f', '\\n', '\\r', '\\t', '\\v'.
43.SH "RETURN VALUE"
60a90ecd
MK
44The
45.BR iswspace ()
eba72288 46function returns non-zero if \fIwc\fP is a wide character
d0f17b57 47belonging to the wide-character class "space".
c13182ef 48Otherwise it returns zero.
fea681da 49.SH "CONFORMING TO"
68e1685c 50C99.
fea681da 51.SH NOTES
d9bfdb9c 52The behavior of
60a90ecd 53.BR iswspace ()
1274071a
MK
54depends on the
55.B LC_CTYPE
56category of the
fea681da 57current locale.
e37e3282
MK
58.SH "SEE ALSO"
59.BR isspace (3),
60.BR iswctype (3)