git://git.jankratochvil.net
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
57cc33565dfd2289488ac7349d78edde57fe1b66
[reactos.git]
/
lib
/
crtdll
/
mbstring
/
mbsrev.c
1
#include <crtdll/mbstring.h>
2
3
unsigned char * _mbsrev(unsigned char *s)
4
{
5
unsigned char *e;
6
unsigned char a;
7
e=s;
8
while (*e) {
9
if ( _ismbblead(*e) ) {
10
a = *e;
11
*e = *++e;
12
if ( *e == 0 )
13
break;
14
*e = a;
15
}
16
e++;
17
}
18
while (s<e) {
19
a=*s;
20
*s=*e;
21
*e=a;
22
s++;
23
e--;
24
}
25
26
27
return s;
28
}