iswctype(3) — Subroutines
NAME
iswctype − Determines the properties of a wide character
LIBRARY
Standard C Library (libc.a)
SYNOPSIS
#include <wchar.h>
int iswctype(
wint_t wc,
wctype_t wc_prop);
PARAMETERS
wcSpecifies the wide character to be tested.
wc_propSpecifies the property to be tested for.
DESCRIPTION
The iswctype() function tests the wide character specified by the wc parameter to determine if it has the property specified by the wc_prop parameter. The wctype() function associates a character property with a wctype_t handle. You should get the value of the wc_proc parameter from a call to wctype() before using it in a call to iswctype(). The iswctype() function is defined for the wide-character null and for values in the character range of the current code set defined in the current locale.
Using an iswclass function, such as iswalnum(), is equivalent to using the iswctype() and wctype() functions to test for a basic property, such as alnum. However, iswctype() and wctype() can test wide characters against any class defined in a locale; the functions are not limited to testing for basic properties.
RETURN VALUES
If the wc parameter has the property specified by the wc_prop parameter, the iswctype() function returns a nonzero value. If the value specified by the wc parameter does not have the property specified by the wc_prop parameter, the iswctype() function returns a value of 0 (zero). If the value specified by the wc parameter is not in the function’s domain, the result is undefined. If the value specified by the wc_prop parameter is not valid, the result is undefined. The value of the wctype parameter can be invalid because it has not obtained by a call to the wctype() function, or it can be invalidated by an intervening call to the setlocale() function that has affected the LC_CTYPE environment variable.
RELATED INFORMATION
Functions: ctype(3), wctype(3), setlocale(3), iswalnum(3).