|
NAMEiswctype , wctype —
wide character class functions
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wctype.h>
int
wctype_t
DESCRIPTIONThewctype () function returns a value of type
wctype_t which represents the requested wide character
class and may be used as the second argument for calls to
iswctype ().
The following character class names are recognised:
The RETURN VALUESTheiswctype () function returns non-zero if and only if
wc has the property described by
charclass, or charclass is zero.
The EXAMPLESReimplement iswalpha(3) in terms ofiswctype () and
wctype ():
int myiswalpha(wint_t wc) { return (iswctype(wc, wctype("alpha"))); } SEE ALSOctype(3), nextwctype(3)STANDARDSTheiswctype () and wctype ()
functions conform to IEEE Std 1003.1-2001
(“POSIX.1”). The
“ideogram ”,
“phonogram ”,
“special ”, and
“rune ” character classes are extensions.
HISTORYTheiswctype () and wctype ()
functions first appeared in FreeBSD 5.0.
Visit the GSP FreeBSD Man Page Interface. |