:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / msvcrt / wstring / wcsrev.c
1 #include <msvcrt/string.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 }