iswcntrl(), iswcntl_l()

tests if wide character is a control character 

Function


SYNOPSIS

#include <wctype.h>

int iswcntrl(wint_t wc);

int iswcntrl_l(wint_t wc, locale_t locale);


DESCRIPTION

The iswcntrl() function tests for any control wide character, where the term control wide character refers to a member of a locale-specific set of wide characters that are not printing wide characters, or any wide character that is one of a locale-specific set of wide characters for which iswprint() is false

The behavior of the iswcntrl() function is affected by the current locale. To modify the behavior, change the LC_CTYPE category in setlocale(), that is, setlocale(LC_CTYPE, newlocale).

iswcntl_l() behaves in the same way as iswcntl() without the _l suffix, but uses the specified locale rather than the global or per-thread locale. A locale_t is returned by newlocale().


PARAMETERS

wc 

Is a wide character code corresponding to a valid character in the current locale or the value of the macro WEOF.

locale 

Is a locale_t perhaps returned by newlocale() or LC_GLOBAL_LOCALE or 0 for the current thread locale set with uselocale().


RETURN VALUES

The iswcntrl() and iswcntrl_l() functions return non-zero for true and zero for false. If the parameter is not in the domain of the function, the behavior is undefined.


CONFORMANCE

ANSI/ISO 9899-1990/AM 1-1995.


MULTITHREAD SAFETY LEVEL

MT-Safe, with exceptions.

The function iswcntrl() is MT-Safe as long as no thread calls setlocale() while this function is executing.

The function iswcntrl_l() is MT-Safe as long as no thread calls freelocale() on locale while this function is executing.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
iswalnum(), iswalnum_l(), iswalpha(), iswalpha_l(), iswdigit(), iswdigit_l(), iswgraph(), iswgraph_l(), iswlower(), iswlower_l(), iswprint(), iswprint_l(), iswpunct(), iswpunct_l(), iswspace(), iswspace_l(), iswupper(), iswupper_l(), iswxdigit(), iswxdigit_l(), newlocale(), setlocale()


PTC MKS Toolkit 10.3 Documentation Build 39.