ReactOS  0.4.14-dev-115-g4576127
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 }
GLdouble n
Definition: glext.h:7729
const WCHAR * str
smooth NULL
Definition: ftsmooth.c:416
int __cdecl _ismbblead(unsigned int)
Definition: ismblead.c:20