]> pd.if.org Git - pdclib/blobdiff - functions/wctype/iswpunct.c
dos2unix
[pdclib] / functions / wctype / iswpunct.c
index b3fe83b8ed10c4556b7a6aa3c994fcbed6678e4e..c59672c44bcd984fdd75d8df10285ce70e7b0519 100644 (file)
@@ -1,31 +1,31 @@
-/* iswpunct( 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 iswpunct( wint_t wc )\r
-{\r
-    return iswctype( wc, _PDCLIB_CTYPE_PUNCT );\r
-}\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    TESTCASE(iswpunct(L';'));\r
-    TESTCASE(iswpunct(L'?'));\r
-    TESTCASE(iswpunct(L'.'));\r
-    TESTCASE(!iswpunct(L' '));\r
-    TESTCASE(!iswpunct(L'Z'));\r
-\r
-    return TEST_RESULTS;\r
-}\r
-#endif\r
+/* iswpunct( 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 iswpunct( wint_t wc )
+{
+    return iswctype( wc, _PDCLIB_CTYPE_PUNCT );
+}
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    TESTCASE(iswpunct(L';'));
+    TESTCASE(iswpunct(L'?'));
+    TESTCASE(iswpunct(L'.'));
+    TESTCASE(!iswpunct(L' '));
+    TESTCASE(!iswpunct(L'Z'));
+
+    return TEST_RESULTS;
+}
+#endif