projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[crt]
[reactos.git]
/
reactos
/
lib
/
sdk
/
crt
/
string
/
tcsncmp.h
1
2
#include <stddef.h>
3
#include <tchar.h>
4
5
int
_tcsncmp
(
const
_TCHAR
*
s1
,
const
_TCHAR
*
s2
,
size_t
n
)
6
{
7
if
(
n
==
0
)
return
0
;
8
9
do
10
{
11
if
(*
s1
!= *
s2
++)
return
*
s1
- *--
s2
;
12
if
(*
s1
++ ==
0
)
break
;
13
}
14
while
(--
n
!=
0
);
15
16
return
0
;
17
}
18
19
/* EOF */