git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
fac5a47b1ff8692797bf20ca30fcad1fecc05f54
[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
}