blob: aef344b42e06957170e0e512a1f3c24479a3b4ce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <wchar.h>
wchar_t *wcsrchr(const wchar_t *s, wchar_t c)
{
const wchar_t *p;
p = s+wcslen(s);
while (*p != c) {
if (p == s) return 0;
p--;
}
return (wchar_t *)p;
}
|