3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
9 #include "_PDCLIB_locale.h"
11 int iswcntrl( wint_t wc )
13 return iswctype( wc, _PDCLIB_CTYPE_CNTRL );
19 #include "_PDCLIB_test.h"
23 TESTCASE(iswcntrl(L'\0'));
24 TESTCASE(iswcntrl(L'\n'));
25 TESTCASE(iswcntrl(L'\v'));
26 TESTCASE(!iswcntrl(L'\t'));
27 TESTCASE(!iswcntrl(L'a'));