branch update for HEAD-2003021201
[reactos.git] / lib / msvcrt / string / strrev.c
1 #include <msvcrt/string.h>
2
3 char * _strrev(char *s)
4 {
5         char a, *b, *e;
6         b=e=s;
7         while (*e)
8                 e++;
9         e--; /* start at last char, not NULL char */
10         while ( b < e )
11         {
12                 a=*b;
13                 *b=*e;
14                 *e=a;
15                 b++;
16                 e--;
17         }
18         return s; /* return ptr to beginning of string */
19 }