- Define _CTYPE_DISABLE_MACROS for MSVC build.
[reactos.git] / reactos / lib / string / strrev.c
1 #include <string.h>
2
3 /*
4 * @implemented
5 */
6 char * _strrev(char *s)
7 {
8 char *e;
9 char a;
10
11 e = s;
12 while (*e)
13 e++;
14
15 while (s<e)
16 {
17 a = *s;
18 *s = *e;
19 *e = a;
20 s++;
21 e--;
22 }
23 return s;
24 }