OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / iswctype.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 ISWCTYPE 3  2014-02-26 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 iswctype \- wide-character classification
19 .SH SYNOPSIS
20 .nf
21 .B #include <wctype.h>
22 .sp
23 .BI "int iswctype(wint_t " wc ", wctype_t " desc );
24 .fi
25 .SH DESCRIPTION
26 If
27 .I wc
28 is a wide character having the character property designated by
29 .I desc
30 (or in other words: belongs to the character class designated by
31 .IR desc ),
32 the
33 .BR iswctype ()
34 function returns nonzero.
35 Otherwise, it
36 returns zero.
37 If
38 .I wc
39 is
40 .BR WEOF ,
41 zero is returned.
42 .PP
43 .I desc
44 must be a character property descriptor
45 returned by the
46 .BR wctype (3)
47 function.
48 .SH RETURN VALUE
49 The
50 .BR iswctype ()
51 function returns nonzero if
52 the
53 .I wc
54 has the designated
55 property.
56 Otherwise, it returns 0.
57 .SH ATTRIBUTES
58 .SS Multithreading (see pthreads(7))
59 The
60 .BR iswctype ()
61 function is thread-safe.
62 .SH CONFORMING TO
63 C99.
64 .SH NOTES
65 The behavior of
66 .BR iswctype ()
67 depends on the
68 .B LC_CTYPE
69 category of the
70 current locale.
71 .SH SEE ALSO
72 .BR iswalnum (3),
73 .BR iswalpha (3),
74 .BR iswblank (3),
75 .BR iswcntrl (3),
76 .BR iswdigit (3),
77 .BR iswgraph (3),
78 .BR iswlower (3),
79 .BR iswprint (3),
80 .BR iswpunct (3),
81 .BR iswspace (3),
82 .BR iswupper (3),
83 .BR iswxdigit (3),
84 .BR wctype (3)
85 .SH COLOPHON
86 This page is part of release 3.79 of the Linux
87 .I man-pages
88 project.
89 A description of the project,
90 information about reporting bugs,
91 and the latest version of this page,
92 can be found at
93 \%http://www.kernel.org/doc/man\-pages/.