+/* $Id$ */\r
+\r
+/* wcsrchr( 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 *wcsrchr(const wchar_t * haystack, wchar_t needle)\r
+{\r
+ wchar_t *found = NULL;\r
+ while(*haystack) {\r
+ if(*haystack == needle) found = haystack;\r
+ haystack++;\r
+ }\r
+ return found;\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