update for HEAD-2003050101
[reactos.git] / lib / crtdll / string / strrev.c
1 #include <msvcrt/string.h>
2
3 char * _strrev(char *s)
4 {
5         char  *e;
6         char   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 }