ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

mbsrev.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.