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