ReactOS
0.4.16-dev-927-g467dec4
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
wcsncpy.cpp
Go to the documentation of this file.
1
//
2
// wcsncpy.cpp
3
//
4
// Copyright (c) Microsoft Corporation. All rights reserved.
5
//
6
// Defines wcsncpy(), which copies a string from one buffer to another. This
7
// function copies at most 'count' characters. If fewer than 'count' characters
8
// are copied, the rest of the buffer is padded with null characters.
9
//
10
#include <string.h>
11
12
#pragma warning(disable:__WARNING_POSTCONDITION_NULLTERMINATION_VIOLATION)
// 26036
13
14
15
#ifdef _M_ARM
16
#pragma function(wcsncpy)
17
#endif
18
19
20
21
extern
"C"
wchar_t
*
__cdecl
wcsncpy
(
22
wchar_t
*
const
destination,
23
wchar_t
const
*
const
source
,
24
size_t
const
count
25
)
26
{
27
size_t
remaining =
count
;
28
29
wchar_t
* destination_it = destination;
30
wchar_t
const
* source_it =
source
;
31
while
(remaining != 0 && (*destination_it++ = *source_it++) != 0)
32
{
33
--remaining;
34
}
35
36
if
(remaining != 0)
37
{
38
while
(--remaining != 0)
39
{
40
*destination_it++ =
L
'\0'
;
41
}
42
}
43
44
return
destination;
45
}
__cdecl
#define __cdecl
Definition:
accygwin.h:79
wcsncpy
wcsncpy
Definition:
corecrt_wstring.h:201
count
GLuint GLuint GLsizei count
Definition:
gl.h:1545
L
#define L(x)
Definition:
ntvdm.h:50
source
Definition:
pdh_main.c:174
sdk
lib
ucrt
string
wcsncpy.cpp
Generated on Sun Mar 30 2025 06:14:53 for ReactOS by
1.9.6