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