README: Update links
[man-pages.git] / man3 / iswspace.3
blobc89517b1559ba2623de7a985b8e06f57e41ba719
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 iswspace 3 (date) "Linux man-pages (unreleased)"
13 .SH NAME
14 iswspace \- test for whitespace 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 iswspace(wint_t " wc );
23 .fi
24 .SH DESCRIPTION
25 The
26 .BR iswspace ()
27 function is the wide-character equivalent of the
28 .BR isspace (3)
29 function.
30 It tests whether
31 .I wc
32 is a wide character
33 belonging to the wide-character class "space".
35 The wide-character class "space" is disjoint from the wide-character class
36 "graph" and therefore also disjoint from its subclasses "alnum", "alpha",
37 "upper", "lower", "digit", "xdigit", "punct".
38 .\" Note: UNIX98 (susv2/xbd/locale.html) says that "space" and "graph" may
39 .\" have characters in common, except U+0020. But C99 (ISO/IEC 9899:1999
40 .\" section 7.25.2.1.10) says that "space" and "graph" are disjoint.
42 The wide-character class "space" contains the wide-character class "blank".
44 The wide-character class "space"
45 always contains at least the space character
46 and the control characters
47 \[aq]\ef\[aq], \[aq]\en\[aq], \[aq]\er\[aq], \[aq]\et\[aq], and \[aq]\ev\[aq].
48 .SH RETURN VALUE
49 The
50 .BR iswspace ()
51 function returns nonzero if
52 .I wc
53 is a wide character
54 belonging to the wide-character class "space".
55 Otherwise, it returns zero.
56 .SH ATTRIBUTES
57 For an explanation of the terms used in this section, see
58 .BR attributes (7).
59 .TS
60 allbox;
61 lbx lb lb
62 l l l.
63 Interface       Attribute       Value
65 .na
66 .nh
67 .BR iswspace ()
68 T}      Thread safety   MT-Safe locale
69 .TE
70 .SH STANDARDS
71 C11, POSIX.1-2008.
72 .SH HISTORY
73 POSIX.1-2001, C99.
74 .SH NOTES
75 The behavior of
76 .BR iswspace ()
77 depends on the
78 .B LC_CTYPE
79 category of the
80 current locale.
81 .SH SEE ALSO
82 .BR isspace (3),
83 .BR iswctype (3)