ReactOS
0.4.16-dev-1097-g530d26a
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
Variables
_
c
d
e
f
g
h
i
l
m
n
o
p
s
t
u
x
Typedefs
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
Enumerations
_
a
b
c
d
f
i
l
m
o
p
s
t
w
x
Enumerator
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
x
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Related Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Examples
mbsninc.cpp
Go to the documentation of this file.
1
/***
2
*mbsninc.c - Increment MBCS string pointer by specified char count.
3
*
4
* Copyright (c) Microsoft Corporation. All rights reserved.
5
*
6
*Purpose:
7
* Increment MBCS string pointer by specified char count.
8
*
9
*******************************************************************************/
10
#ifndef _MBCS
11
#error This file should only be compiled with _MBCS defined
12
#endif
13
14
#include <
corecrt_internal_mbstring.h
>
15
#include <mbstring.h>
16
#include <stddef.h>
17
18
/***
19
*_mbsninc - Increment MBCS string pointer by specified char count.
20
*
21
*Purpose:
22
* Increment the supplied string pointer by the specified number
23
* of characters. MBCS characters are handled correctly.
24
*
25
*Entry:
26
* const unsigned char *string = pointer to string
27
* unsigned int ccnt = number of char to advance the pointer
28
*
29
*Exit:
30
* Returns pointer after advancing it.
31
* Returns pointer to end of string if string is not ccnt chars long.
32
* Returns nullptr is supplied pointer is nullptr.
33
*
34
*Exceptions:
35
*
36
*******************************************************************************/
37
38
extern
"C"
unsigned
char
*
__cdecl
_mbsninc_l
(
39
const
unsigned
char
*
string
,
40
size_t
ccnt
,
41
_locale_t
plocinfo
42
)
43
{
44
if
(
string
==
nullptr
)
45
return
nullptr
;
46
47
return
const_cast<
unsigned
char
*
>
(
string
) + (
unsigned
int
)
_mbsnbcnt_l
(
string
,
ccnt
,
plocinfo
);
48
}
49
50
extern
"C"
unsigned
char
* (
__cdecl
_mbsninc
)(
51
const
unsigned
char
*
string
,
52
size_t
ccnt
53
)
54
{
55
return
_mbsninc_l
(
string
,
ccnt
,
nullptr
);
56
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
corecrt_internal_mbstring.h
_mbsnbcnt_l
_Check_return_ _CRTIMP size_t __cdecl _mbsnbcnt_l(_In_reads_bytes_(_MaxCount) _Pre_z_ const unsigned char *_Str, _In_ size_t _MaxCount, _In_opt_ _locale_t _Locale)
plocinfo
_locale_t plocinfo
Definition:
ismbbyte.cpp:75
ccnt
size_t ccnt
Definition:
mbsnbcnt.cpp:69
_mbsninc
unsigned char *__cdecl _mbsninc(const unsigned char *string, size_t ccnt)
Definition:
mbsninc.cpp:50
_mbsninc_l
unsigned char *__cdecl _mbsninc_l(const unsigned char *string, size_t ccnt, _locale_t plocinfo)
Definition:
mbsninc.cpp:38
string
char string[160]
Definition:
util.h:11
localeinfo_struct
Definition:
corecrt.h:22
sdk
lib
ucrt
mbstring
mbsninc.cpp
Generated on Tue May 6 2025 06:14:51 for ReactOS by
1.9.6