update for HEAD-2002110701
[reactos.git] / lib / crtdll / wchar / wcsrev.c
1 #include <crtdll/wchar.h>
2
3 wchar_t * _wcsrev(wchar_t *s) 
4 {
5         wchar_t  *e;
6         wchar_t   a;
7         e=s;
8         while (*e)
9                 e++;
10         while (s<e) {
11                 a=*s;
12                 *s=*e;
13                 *e=a;
14                 s++;
15                 e--;
16         }
17         return s;
18 }