]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/wctype.3
fuse.4: ffix
[thirdparty/man-pages.git] / man3 / wctype.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
89e3ffe9 3.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
fea681da
MK
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.
fe382ebf 8.\" %%%LICENSE_END
fea681da
MK
9.\"
10.\" References consulted:
11.\" GNU glibc-2 source code and manual
12.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 13.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
14.\" ISO/IEC 9899:1999
15.\"
460495ca 16.TH WCTYPE 3 2015-08-08 "GNU" "Linux Programmer's Manual"
fea681da 17.SH NAME
d0f17b57 18wctype \- wide-character classification
fea681da
MK
19.SH SYNOPSIS
20.nf
21.B #include <wctype.h>
68e4db0a 22.PP
fea681da
MK
23.BI "wctype_t wctype(const char *" name );
24.fi
25.SH DESCRIPTION
eb0ac593
MK
26The
27.I wctype_t
28type represents a property which a wide character may or
c13182ef
MK
29may not have.
30In other words, it represents a class of wide characters.
a43eed0c 31This type's nature is implementation-dependent, but the special value
eb0ac593
MK
32.I "(wctype_t) 0"
33denotes an invalid property.
34Nonzero
35.I wctype_t
36values
60a90ecd
MK
37can be passed to the
38.BR iswctype (3)
39function
c13182ef 40to actually test whether a given
fea681da
MK
41wide character has the property.
42.PP
60a90ecd
MK
43The
44.BR wctype ()
45function returns a property, given by its name.
c13182ef 46The set of
1274071a
MK
47valid names depends on the
48.B LC_CTYPE
49category of the current locale, but the
fea681da 50following names are valid in all locales.
a2b7a144 51.PP
fea681da 52.nf
a2b7a144
MK
53 "alnum" \- realizes the \fBisalnum\fP(3) classification function
54 "alpha" \- realizes the \fBisalpha\fP(3) classification function
55 "blank" \- realizes the \fBisblank\fP(3) classification function
56 "cntrl" \- realizes the \fBiscntrl\fP(3) classification function
57 "digit" \- realizes the \fBisdigit\fP(3) classification function
58 "graph" \- realizes the \fBisgraph\fP(3) classification function
59 "lower" \- realizes the \fBislower\fP(3) classification function
60 "print" \- realizes the \fBisprint\fP(3) classification function
61 "punct" \- realizes the \fBispunct\fP(3) classification function
62 "space" \- realizes the \fBisspace\fP(3) classification function
63 "upper" \- realizes the \fBisupper\fP(3) classification function
64 "xdigit" \- realizes the \fBisxdigit\fP(3) classification function
fea681da 65.fi
47297adb 66.SH RETURN VALUE
60a90ecd
MK
67The
68.BR wctype ()
69function returns a property descriptor
eb0ac593
MK
70if the
71.I name
72is valid.
2b9b829d 73Otherwise, it returns
eb0ac593 74.IR "(wctype_t) 0" .
060d7a6e 75.SH ATTRIBUTES
edf62357
PH
76For an explanation of the terms used in this section, see
77.BR attributes (7).
78.TS
79allbox;
80lb lb lb
81l l l.
82Interface Attribute Value
83T{
060d7a6e 84.BR wctype ()
edf62357
PH
85T} Thread safety MT-Safe locale
86.TE
47297adb 87.SH CONFORMING TO
f01583a1 88POSIX.1-2001, POSIX.1-2008, C99.
fea681da 89.SH NOTES
d9bfdb9c 90The behavior of
60a90ecd 91.BR wctype ()
1274071a
MK
92depends on the
93.B LC_CTYPE
94category of the
fea681da 95current locale.
47297adb 96.SH SEE ALSO
e37e3282 97.BR iswctype (3)