]> pd.if.org Git - pdclib/blobdiff - functions/wctype/iswalpha.c
dos2unix
[pdclib] / functions / wctype / iswalpha.c
index 5c173788a6740934bd0ea9c605ae376bbdd5da9d..9cf5cfaa0646f7538a90b8b58e8d7a5f7ef5ba6a 100644 (file)
@@ -1,30 +1,30 @@
-/* iswalpha( wint_t )\r
-\r
-   This file is part of the Public Domain C Library (PDCLib).\r
-   Permission is granted to use, modify, and / or redistribute at will.\r
-*/\r
-\r
-#include <wctype.h>\r
-#ifndef REGTEST\r
-#include "_PDCLIB_locale.h"\r
-\r
-int iswalpha( wint_t wc )\r
-{\r
-    return iswctype( wc, _PDCLIB_CTYPE_ALPHA );\r
-}\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    TESTCASE(iswalpha(L'a'));\r
-    TESTCASE(iswalpha(L'z'));\r
-    TESTCASE(iswalpha(L'E'));\r
-    TESTCASE(!iswalpha(L'3'));\r
-    TESTCASE(!iswalpha(L';'));\r
-    return TEST_RESULTS;\r
-}\r
-#endif\r
+/* iswalpha( 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 <wctype.h>
+#ifndef REGTEST
+#include "_PDCLIB_locale.h"
+
+int iswalpha( wint_t wc )
+{
+    return iswctype( wc, _PDCLIB_CTYPE_ALPHA );
+}
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    TESTCASE(iswalpha(L'a'));
+    TESTCASE(iswalpha(L'z'));
+    TESTCASE(iswalpha(L'E'));
+    TESTCASE(!iswalpha(L'3'));
+    TESTCASE(!iswalpha(L';'));
+    return TEST_RESULTS;
+}
+#endif