ReactOS 0.4.16-dev-300-g2aadf2e
mbsdec.c File Reference
#include <precomp.h>
#include <mbstring.h>
Include dependency graph for mbsdec.c:

Go to the source code of this file.

Functions

unsigned char_mbsdec (const unsigned char *str, const unsigned char *cur)
 

Function Documentation

◆ _mbsdec()

unsigned char * _mbsdec ( const unsigned char str,
const unsigned char cur 
)

Definition at line 7 of file mbsdec.c.

8{
9 unsigned char *s = (unsigned char *)cur;
10 if ( str >= cur )
11 return NULL;
12
13 s--;
14 if (_ismbblead(*(s-1)) )
15 s--;
16
17 return s;
18}
#define NULL
Definition: types.h:112
FxCollectionEntry * cur
GLdouble s
Definition: gl.h:2039
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
const WCHAR * str