]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/iswspace.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / iswspace.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
4.\"
5.\" References consulted:
6.\" GNU glibc-2 source code and manual
7.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 8.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
9.\" ISO/IEC 9899:1999
10.\"
45186a5d 11.TH ISWSPACE 3 2021-03-22 "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13iswspace \- test for whitespace wide character
19b989d3
AC
14.SH LIBRARY
15Standard C library
8fc3b2cf 16.RI ( libc ", " \-lc )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <wctype.h>
68e4db0a 20.PP
fea681da
MK
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.
35cfd378
MK
29It tests whether
30.I wc
31is a wide character
d0f17b57 32belonging to the wide-character class "space".
fea681da 33.PP
d0f17b57 34The wide-character class "space" is disjoint from the wide-character class
fea681da
MK
35"graph" and therefore also disjoint from its subclasses "alnum", "alpha",
36"upper", "lower", "digit", "xdigit", "punct".
37.\" Note: UNIX98 (susv2/xbd/locale.html) says that "space" and "graph" may
68e1685c 38.\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999
fea681da
MK
39.\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
40.PP
d0f17b57 41The wide-character class "space" contains the wide-character class "blank".
fea681da 42.PP
d0f17b57 43The wide-character class "space" always contains at least the space character
f81fb444 44and the control
d1a71985 45characters \(aq\ef\(aq, \(aq\en\(aq, \(aq\er\(aq, \(aq\et\(aq, \(aq\ev\(aq.
47297adb 46.SH RETURN VALUE
60a90ecd
MK
47The
48.BR iswspace ()
35cfd378
MK
49function returns nonzero if
50.I wc
51is a wide character
d0f17b57 52belonging to the wide-character class "space".
2b9b829d 53Otherwise, it returns zero.
b31d11a4
PH
54.SH ATTRIBUTES
55For an explanation of the terms used in this section, see
56.BR attributes (7).
c466875e
MK
57.ad l
58.nh
b31d11a4
PH
59.TS
60allbox;
c466875e 61lbx lb lb
b31d11a4
PH
62l l l.
63Interface Attribute Value
64T{
65.BR iswspace ()
66T} Thread safety MT-Safe locale
67.TE
c466875e
MK
68.hy
69.ad
70.sp 1
3113c7f3 71.SH STANDARDS
463701f1 72POSIX.1-2001, POSIX.1-2008, C99.
fea681da 73.SH NOTES
d9bfdb9c 74The behavior of
60a90ecd 75.BR iswspace ()
1274071a
MK
76depends on the
77.B LC_CTYPE
78category of the
fea681da 79current locale.
47297adb 80.SH SEE ALSO
e37e3282
MK
81.BR isspace (3),
82.BR iswctype (3)