ReactOS  0.4.14-dev-115-g4576127
mbsrev.c File Reference
#include <mbstring.h>
Include dependency graph for mbsrev.c:

Go to the source code of this file.

Functions

unsigned char_mbsrev (unsigned char *s)
 

Function Documentation

◆ _mbsrev()

unsigned char* _mbsrev ( unsigned char s)

Definition at line 6 of file mbsrev.c.

7 {
8  unsigned char *e;
9  unsigned char a;
10  unsigned char *e2;
11  e=s;
12  while (*e) {
13  if ( _ismbblead(*e) ) {
14  a = *e;
15  e2 = e;
16  *e2 = *++e;
17  if ( *e == 0 )
18  break;
19  *e = a;
20  }
21  e++;
22  }
23  while (s<e) {
24  a=*s;
25  *s=*e;
26  *e=a;
27  s++;
28  e--;
29  }
30 
31 
32  return s;
33 }
#define a
Definition: ke_i.h:78
#define e
Definition: ke_i.h:82
GLdouble s
Definition: gl.h:2039
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204