1WCTYPE(3)                  Linux Programmer's Manual                 WCTYPE(3)
2
3
4

NAME

6       wctype - wide character classification
7

SYNOPSIS

9       #include <wctype.h>
10
11       wctype_t wctype(const char *name);
12

DESCRIPTION

14       The  wctype_t  type represents a property which a wide character may or
15       may not have. In other words, it represents a class of wide characters.
16       This  type's  nature is implementation dependent, but the special value
17       (wctype_t)0 denotes an invalid property. Nonzero wctype_t values can be
18       passed to the iswctype() function to actually test whether a given wide
19       character has the property.
20
21       The wctype() function returns a property, given by its name. The set of
22       valid names depends on the LC_CTYPE category of the current locale, but
23       the following names are valid in all locales.
24         "alnum" - realizes the isalnum() classification function
25         "alpha" - realizes the isalpha() classification function
26         "blank" - realizes the isblank() classification function
27         "cntrl" - realizes the iscntrl() classification function
28         "digit" - realizes the isdigit() classification function
29         "graph" - realizes the isgraph() classification function
30         "lower" - realizes the islower() classification function
31         "print" - realizes the isprint() classification function
32         "punct" - realizes the ispunct() classification function
33         "space" - realizes the isspace() classification function
34         "upper" - realizes the isupper() classification function
35         "xdigit" - realizes the isxdigit() classification function
36

RETURN VALUE

38       The wctype() function returns a property  descriptor  if  the  name  is
39       valid. Otherwise it returns (wctype_t)0.
40

CONFORMING TO

42       C99.
43

SEE ALSO

45       iswctype(3)
46

NOTES

48       The  behaviour of wctype() depends on the LC_CTYPE category of the cur‐
49       rent locale.
50
51
52
53GNU                               1999-07-25                         WCTYPE(3)
Impressum