X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwctype%2Fiswcntrl.c;h=1c81c54437006264cd76114e791f235e28ab576d;hp=e3cd1cd9e3755edccbe4c7c46bef98062635e510;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/functions/wctype/iswcntrl.c b/functions/wctype/iswcntrl.c index e3cd1cd..1c81c54 100644 --- a/functions/wctype/iswcntrl.c +++ b/functions/wctype/iswcntrl.c @@ -1,30 +1,30 @@ -/* iswcntrl( wint_t ) - - This file is part of the Public Domain C Library (PDCLib). - Permission is granted to use, modify, and / or redistribute at will. -*/ - -#include -#ifndef REGTEST -#include "_PDCLIB_locale.h" - -int iswcntrl( wint_t wc ) -{ - return iswctype( wc, _PDCLIB_CTYPE_CNTRL ); -} - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -int main( void ) -{ - TESTCASE(iswcntrl(L'\0')); - TESTCASE(iswcntrl(L'\n')); - TESTCASE(iswcntrl(L'\v')); - TESTCASE(!iswcntrl(L'\t')); - TESTCASE(!iswcntrl(L'a')); - return TEST_RESULTS; -} -#endif +/* iswcntrl( wint_t ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include +#ifndef REGTEST +#include "_PDCLIB_locale.h" + +int iswcntrl( wint_t wc ) +{ + return iswctype( wc, _PDCLIB_CTYPE_CNTRL ); +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + TESTCASE(iswcntrl(L'\0')); + TESTCASE(iswcntrl(L'\n')); + TESTCASE(iswcntrl(L'\v')); + TESTCASE(!iswcntrl(L'\t')); + TESTCASE(!iswcntrl(L'a')); + return TEST_RESULTS; +} +#endif