projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Synchronize with trunk r58528.
[reactos.git]
/
lib
/
sdk
/
crt
/
string
/
tcsncpy.h
1
2
#include <stddef.h>
3
#include <tchar.h>
4
5
_TCHAR
*
_tcsncpy
(
_TCHAR
*
dst
,
const
_TCHAR
*
src
,
size_t
n
)
6
{
7
if
(
n
!=
0
)
8
{
9
_TCHAR
*
d
=
dst
;
10
const
_TCHAR
*
s
=
src
;
11
12
do
13
{
14
if
((*
d
++ = *
s
++) ==
0
)
15
{
16
while
(--
n
!=
0
) *
d
++ =
0
;
17
break
;
18
}
19
}
20
while
(--
n
!=
0
);
21
}
22
23
return
dst
;
24
}
25
26
/* EOF */