+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main()
+{
+ char abccd[] = "abccd";
+ BEGIN_TESTS;
+ TESTCASE( strrchr( abcde, '\0' ) == &abcde[5] );
+ TESTCASE( strrchr( abcde, 'e' ) == &abcde[4] );
+ TESTCASE( strrchr( abcde, 'a' ) == &abcde[0] );
+ TESTCASE( strrchr( abccd, 'c' ) == &abccd[3] );
+ return TEST_RESULTS;
+}
+#endif