xref: /reactos/sdk/lib/crt/string/tcsrchr.h (revision 69931a4a)
1 
2 #include <tchar.h>
3 
4 _TCHAR * _tcsrchr(const _TCHAR * s, _XINT c)
5 {
6  _TCHAR cc = c;
7  const _TCHAR * sp = (_TCHAR *)0;
8 
9  while(*s)
10  {
11   if(*s == cc) sp = s;
12   s ++;
13  }
14 
15  if(cc == 0) sp = s;
16 
17  return (_TCHAR *)sp;
18 }
19 
20 /* EOF */
21