aboutsummaryrefslogtreecommitdiff
path: root/src/string/wcsrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/wcsrchr.c')
-rw-r--r--src/string/wcsrchr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/string/wcsrchr.c b/src/string/wcsrchr.c
index 8961b9e2..d6fe1da3 100644
--- a/src/string/wcsrchr.c
+++ b/src/string/wcsrchr.c
@@ -6,3 +6,11 @@ wchar_t *wcsrchr(const wchar_t *s, wchar_t c)
for (p=s+wcslen(s); p>=s && *p!=c; p--);
return p>=s ? (wchar_t *)p : 0;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif