X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fwctype%2Fiswpunct.c;h=c59672c44bcd984fdd75d8df10285ce70e7b0519;hp=ad9ccf63e14e41c658fb25a1000d42d05ee06e69;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hpb=06630c64aa2ac5b8ec55c3c0509e69da4d81a22b diff --git a/functions/wctype/iswpunct.c b/functions/wctype/iswpunct.c index ad9ccf6..c59672c 100644 --- a/functions/wctype/iswpunct.c +++ b/functions/wctype/iswpunct.c @@ -1,31 +1,31 @@ -/* iswpunct( 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 iswpunct( wint_t wc ) -{ - return iswctype( wc, _PDCLIB_CTYPE_PUNCT ); -} - -#endif - -#ifdef TEST -#include <_PDCLIB_test.h> - -int main( void ) -{ - TESTCASE(iswpunct(L';')); - TESTCASE(iswpunct(L'?')); - TESTCASE(iswpunct(L'.')); - TESTCASE(!iswpunct(L' ')); - TESTCASE(!iswpunct(L'Z')); - - return TEST_RESULTS; -} -#endif +/* iswpunct( 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 iswpunct( wint_t wc ) +{ + return iswctype( wc, _PDCLIB_CTYPE_PUNCT ); +} + +#endif + +#ifdef TEST +#include "_PDCLIB_test.h" + +int main( void ) +{ + TESTCASE(iswpunct(L';')); + TESTCASE(iswpunct(L'?')); + TESTCASE(iswpunct(L'.')); + TESTCASE(!iswpunct(L' ')); + TESTCASE(!iswpunct(L'Z')); + + return TEST_RESULTS; +} +#endif