X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwctype%2Fiswgraph.c;h=954844a2a58bf0ce1830808c1ee76fd062fd9a0e;hp=8da4de642bc3f60eb727c4229ac41cd76a28bf1e;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=8894c921674bb116d0a7b8f23a55311e7a768019 diff --git a/functions/wctype/iswgraph.c b/functions/wctype/iswgraph.c index 8da4de6..954844a 100644 --- a/functions/wctype/iswgraph.c +++ b/functions/wctype/iswgraph.c @@ -1,31 +1,31 @@ -/* iswgraph( 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 iswgraph( wint_t wc ) -{ - return iswctype( wc, _PDCLIB_CTYPE_GRAPH ); -} - -#endif - -#ifdef TEST -#include "_PDCLIB_test.h" - -int main( void ) -{ - TESTCASE(iswgraph(L'a')); - TESTCASE(iswgraph(L'z')); - TESTCASE(iswgraph(L'E')); - TESTCASE(!iswgraph(L' ')); - TESTCASE(!iswgraph(L'\t')); - TESTCASE(!iswgraph(L'\n')); - return TEST_RESULTS; -} -#endif +/* iswgraph( 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 iswgraph( wint_t wc ) +{ + return iswctype( wc, _PDCLIB_CTYPE_GRAPH ); +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + TESTCASE(iswgraph(L'a')); + TESTCASE(iswgraph(L'z')); + TESTCASE(iswgraph(L'E')); + TESTCASE(!iswgraph(L' ')); + TESTCASE(!iswgraph(L'\t')); + TESTCASE(!iswgraph(L'\n')); + return TEST_RESULTS; +} +#endif