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