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

Go to the source code of this file.

Functions

unsigned char_mbsninc (const unsigned char *str, size_t n)
 

Function Documentation

◆ _mbsninc()

unsigned char * _mbsninc ( const unsigned char str,
size_t  n 
)

Definition at line 19 of file mbsninc.c.

20{
21 if(!str)
22 return NULL;
23
24 while (n > 0 && *str)
25 {
26 if (_ismbblead(*str))
27 {
28 if (!*(str+1))
29 break;
30 str++;
31 }
32 str++;
33 n--;
34 }
35
36 return (unsigned char*)str;
37}
#define NULL
Definition: types.h:112
GLdouble n
Definition: glext.h:7729
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20
const WCHAR * str