X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwctype%2Fiswblank.c;h=a73b9f63ce177ac1e229eabd395d0e203e4d1586;hp=99fb35c8bc14f5c123e8e5b189150c606fc68709;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=06630c64aa2ac5b8ec55c3c0509e69da4d81a22b diff --git a/functions/wctype/iswblank.c b/functions/wctype/iswblank.c index 99fb35c..a73b9f6 100644 --- a/functions/wctype/iswblank.c +++ b/functions/wctype/iswblank.c @@ -1,29 +1,29 @@ -/* iswblank( 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 iswblank( wint_t wc ) -{ - return iswctype( wc, _PDCLIB_CTYPE_BLANK ); -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - TESTCASE(iswblank(L' ')); - TESTCASE(iswblank(L'\t')); - TESTCASE(!iswblank(L'\n')); - TESTCASE(!iswblank(L'a')); - return TEST_RESULTS; -} -#endif +/* iswblank( 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 iswblank( wint_t wc ) +{ + return iswctype( wc, _PDCLIB_CTYPE_BLANK ); +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + TESTCASE(iswblank(L' ')); + TESTCASE(iswblank(L'\t')); + TESTCASE(!iswblank(L'\n')); + TESTCASE(!iswblank(L'a')); + return TEST_RESULTS; +} +#endif