projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Added binary and unicode file i/o support to msvcrt.
[reactos.git]
/
reactos
/
lib
/
crtdll
/
mbstring
/
mbsdec.c
1
#include <msvcrt/mbstring.h>
2
3
unsigned char
*
_mbsdec
(
const unsigned char
*
str
,
const unsigned char
*
cur
)
4
{
5
unsigned char
*
s
= (
unsigned char
*)
cur
;
6
if
(
str
>=
cur
)
7
return
NULL
;
8
9
s
--;
10
if
(
_ismbblead
(*(
s
-
1
)) )
11
s
--;
12
13
return
s
;
14
}