git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
8827c3b5bb52fa6342d3c915668319f1a75d8961
[reactos.git]
/
lib
/
msvcrt
/
string
/
strrev.c
1
#include <msvcrt/string.h>
2
3
/*
4
* @implemented
5
*/
6
char * _strrev(char *s)
7
{
8
char a, *b, *e;
9
b=e=s;
10
while (*e)
11
e++;
12
e--; /* start at last char, not NULL char */
13
while ( b < e )
14
{
15
a=*b;
16
*b=*e;
17
*e=a;
18
b++;
19
e--;
20
}
21
return s; /* return ptr to beginning of string */
22
}