xref: /reactos/sdk/lib/crt/mbstring/mbsnextc.c (revision 845faec4)
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS system libraries
4  * FILE:        lib/sdk/crt/mbstring/mbsnextc.c
5  * PURPOSE:      Finds the next character in a string
6  * PROGRAMERS:
7 *              Copyright 1999 Alexandre Julliard
8  *              Copyright 2000 Jon Griffths
9  *
10  */
11 
12 #include <precomp.h>
13 #include <mbstring.h>
14 
15 /*
16  * @implemented
17  */
18 unsigned int _mbsnextc (const unsigned char *str)
19 {
20   if(_ismbblead(*str))
21     return *str << 8 | str[1];
22   return *str;
23 }
24