:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / crtdll / wchar / wcsrchr.c
1 #include <crtdll/wchar.h>
2
3 wchar_t* wcsrchr(const wchar_t* str, wchar_t ch)
4 {
5   
6         wchar_t *sp=(wchar_t *)0;
7         while (*str != 0)
8         {
9                 if (*str == ch) 
10                         sp = (wchar_t *)str;
11                 str++;
12         }
13         if (ch == 0)
14                 sp = (wchar_t *)str;
15         return sp;
16 }