projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
- Cleanup the /lib directory, by putting more 3rd-party libs in /3rdparty, and by...
[reactos.git]
/
reactos
/
lib
/
sdk
/
crt
/
mbstring
/
mbsnextc.c
1
#include <stdlib.h>
2
#include <mbstring.h>
3
4
/*
5
* @implemented
6
*/
7
unsigned int
_mbsnextc
(
const unsigned char
*
src
)
8
{
9
unsigned char
*
char_src
= (
unsigned char
*)
src
;
10
unsigned short
*
short_src
= (
unsigned short
*)
src
;
11
12
if
(
src
==
NULL
)
13
return
0
;
14
15
if
(!
_ismbblead
(*
src
))
16
return
*
char_src
;
17
else
18
return
*
short_src
;
19
return
0
;
20
}