3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
10 #include <_PDCLIB_locale.h>
14 return ( _PDCLIB_threadlocale()->_CType[c].flags & _PDCLIB_CTYPE_PUNCT );
20 #include <_PDCLIB_test.h>
24 TESTCASE( ! ispunct( 'a' ) );
25 TESTCASE( ! ispunct( 'z' ) );
26 TESTCASE( ! ispunct( 'A' ) );
27 TESTCASE( ! ispunct( 'Z' ) );
28 TESTCASE( ispunct( '@' ) );
29 TESTCASE( ispunct( '.' ) );
30 TESTCASE( ! ispunct( '\t' ) );
31 TESTCASE( ! ispunct( '\0' ) );
32 TESTCASE( ! ispunct( ' ' ) );