mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:43:22 +00:00
Create a branch for network fixes.
svn path=/branches/aicom-network-fixes/; revision=34994
This commit is contained in:
parent
0e213bbc00
commit
c501d8112c
18148 changed files with 0 additions and 860488 deletions
33
lib/sdk/crt/mbstring/mbsrev.c
Normal file
33
lib/sdk/crt/mbstring/mbsrev.c
Normal file
|
@ -0,0 +1,33 @@
|
|||
#include <mbstring.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
unsigned char * _mbsrev(unsigned char *s)
|
||||
{
|
||||
unsigned char *e;
|
||||
unsigned char a;
|
||||
unsigned char *e2;
|
||||
e=s;
|
||||
while (*e) {
|
||||
if ( _ismbblead(*e) ) {
|
||||
a = *e;
|
||||
e2 = e;
|
||||
*e2 = *++e;
|
||||
if ( *e == 0 )
|
||||
break;
|
||||
*e = a;
|
||||
}
|
||||
e++;
|
||||
}
|
||||
while (s<e) {
|
||||
a=*s;
|
||||
*s=*e;
|
||||
*e=a;
|
||||
s++;
|
||||
e--;
|
||||
}
|
||||
|
||||
|
||||
return s;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue