summaryrefslogtreecommitdiff
path: root/src/wchar/wcsrchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wchar/wcsrchr.c')
-rw-r--r--src/wchar/wcsrchr.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wchar/wcsrchr.c b/src/wchar/wcsrchr.c
new file mode 100644
index 00000000..291dc6f4
--- /dev/null
+++ b/src/wchar/wcsrchr.c
@@ -0,0 +1,17 @@
+#include <wchar.h>
+
+wchar_t * wcsrchr(const wchar_t * s, wchar_t c)
+{
+ wchar_t *last = NULL;
+ while (*s) {
+ if (*s == c) {
+ last = (wchar_t*)s;
+ }
+ s++;
+ }
+ return last;
+}
+
+/*
+STDC(199409)
+*/