Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenmbsrev.c
Go to the documentation of this file.
00001 #include <mbstring.h> 00002 00003 /* 00004 * @implemented 00005 */ 00006 unsigned char * _mbsrev(unsigned char *s) 00007 { 00008 unsigned char *e; 00009 unsigned char a; 00010 unsigned char *e2; 00011 e=s; 00012 while (*e) { 00013 if ( _ismbblead(*e) ) { 00014 a = *e; 00015 e2 = e; 00016 *e2 = *++e; 00017 if ( *e == 0 ) 00018 break; 00019 *e = a; 00020 } 00021 e++; 00022 } 00023 while (s<e) { 00024 a=*s; 00025 *s=*e; 00026 *e=a; 00027 s++; 00028 e--; 00029 } 00030 00031 00032 return s; 00033 } Generated on Wed May 23 2012 04:34:26 for ReactOS by
1.7.6.1
|