]> pd.if.org Git - pdclib/blob - functions/wctype/iswgraph.c
Cosmetic comment fixes.
[pdclib] / functions / wctype / iswgraph.c
1 /* iswgraph( wint_t )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <wctype.h>
8 #ifndef REGTEST
9 #include "_PDCLIB_locale.h"
10
11 int iswgraph( wint_t wc )
12 {
13     return iswctype( wc, _PDCLIB_CTYPE_GRAPH );
14 }
15
16 #endif
17
18 #ifdef TEST
19 #include "_PDCLIB_test.h"
20
21 int main( void )
22 {
23     TESTCASE(iswgraph(L'a'));
24     TESTCASE(iswgraph(L'z'));
25     TESTCASE(iswgraph(L'E'));
26     TESTCASE(!iswgraph(L' '));
27     TESTCASE(!iswgraph(L'\t'));
28     TESTCASE(!iswgraph(L'\n'));
29     return TEST_RESULTS;
30 }
31 #endif