]> pd.if.org Git - pdclib/blobdiff - functions/wchar/wcschr.c
dos2unix
[pdclib] / functions / wchar / wcschr.c
index 0dffcaab138f3dfc6616ea69cc8ec8f1e3d6063c..5629aa6fdc1e70fd0df0a4d64ad775f26851ca2d 100644 (file)
@@ -1,32 +1,32 @@
-/* wcschr( const wchar_t *, wchar_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 <wchar.h>\r
-#include <stddef.h>\r
-\r
-#ifndef REGTEST\r
-\r
-wchar_t *wcschr(const wchar_t * haystack, wchar_t needle)\r
-{\r
-    while(*haystack) {\r
-        if(*haystack == needle) return (wchar_t*) haystack;\r
-        haystack++;\r
-    }\r
-    return NULL;\r
-}\r
-\r
-\r
-#endif\r
-\r
-#ifdef TEST\r
-#include "_PDCLIB_test.h"\r
-\r
-int main( void )\r
-{\r
-    return TEST_RESULTS;\r
-}\r
-\r
-#endif\r
+/* wcschr( const wchar_t *, wchar_t );
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <wchar.h>
+#include <stddef.h>
+
+#ifndef REGTEST
+
+wchar_t *wcschr(const wchar_t * haystack, wchar_t needle)
+{
+    while(*haystack) {
+        if(*haystack == needle) return (wchar_t*) haystack;
+        haystack++;
+    }
+    return NULL;
+}
+
+
+#endif
+
+#ifdef TEST
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return TEST_RESULTS;
+}
+
+#endif