]> pd.if.org Git - pdclib/blob - functions/wctype/iswlower.c
1675ed2448ad7d52b66d0571f9f00af80f170736
[pdclib] / functions / wctype / iswlower.c
1 /* iswalnum( 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 iswlower( wint_t wc )\r
12 {\r
13     return iswctype( wc, _PDCLIB_CTYPE_LOWER );\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(iswlower(L'a'));\r
24     TESTCASE(iswlower(L'e'));\r
25     TESTCASE(iswlower(L'z'));\r
26     TESTCASE(!iswlower(L'A'));\r
27     TESTCASE(!iswlower(L'E'));\r
28     TESTCASE(!iswlower(L'Z'));\r
29     return TEST_RESULTS;\r
30 }\r
31 #endif\r