OSDN Git Service

LDP: Update original to LDP v3.68
[linuxjm/LDP_man-pages.git] / original / man3 / iswblank.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .TH ISWBLANK 3  2014-02-10 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 iswblank \- test for whitespace wide character
19 .SH SYNOPSIS
20 .nf
21 .B #include <wctype.h>
22 .sp
23 .BI "int iswblank(wint_t " wc );
24 .fi
25 .sp
26 .in -4n
27 Feature Test Macro Requirements for glibc (see
28 .BR feature_test_macros (7)):
29 .in
30 .sp
31 .ad l
32 .BR iswblank ():
33 .RS
34 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
35 _POSIX_C_SOURCE\ >=\ 200112L;
36 .br
37 or
38 .I cc\ -std=c99
39 .RE
40 .ad
41 .SH DESCRIPTION
42 The
43 .BR iswblank ()
44 function is the wide-character equivalent of the
45 .BR isblank (3)
46 function.
47 It tests whether \fIwc\fP is a wide character
48 belonging to the wide-character class "blank".
49 .PP
50 The wide-character class "blank" is a subclass of the wide-character class
51 "space".
52 .PP
53 Being a subclass of the wide-character class "space",
54 the wide-character class "blank" is disjoint from the
55 wide-character class "graph" and therefore also disjoint
56 from its subclasses "alnum", "alpha", "upper", "lower", "digit",
57 "xdigit", "punct".
58 .PP
59 The wide-character class "blank" always contains
60 at least the space character
61 and the control character \(aq\\t\(aq.
62 .SH RETURN VALUE
63 The
64 .BR iswblank ()
65 function returns nonzero
66 if \fIwc\fP is a wide character
67 belonging to the wide-character class "blank".
68 Otherwise, it returns zero.
69 .SH ATTRIBUTES
70 .SS Multithreading (see pthreads(7))
71 The
72 .BR iswblank ()
73 function is thread-safe with exceptions.
74 It can be safely used in multithreaded applications, as long as
75 .BR setlocale (3)
76 is not called to change the locale during its execution.
77 .SH CONFORMING TO
78 POSIX.1-2001.
79 .SH NOTES
80 The behavior of
81 .BR iswblank ()
82 depends on the
83 .B LC_CTYPE
84 category of the
85 current locale.
86 .SH SEE ALSO
87 .BR isblank (3),
88 .BR iswctype (3)
89 .SH COLOPHON
90 This page is part of release 3.68 of the Linux
91 .I man-pages
92 project.
93 A description of the project,
94 information about reporting bugs,
95 and the latest version of this page,
96 can be found at
97 \%http://www.kernel.org/doc/man\-pages/.