projects
/
reactos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[CDMAKE][CTR] Fix strtok_s for empty strings. Part of Wine commit 4fa616c by Bernhard...
[reactos.git]
/
reactos
/
sdk
/
lib
/
crt
/
string
/
tcsnlen.h
1
2
#include <stddef.h>
3
#include <tchar.h>
4
5
size_t
__cdecl
_tcsnlen
(
const
_TCHAR
*
str
,
size_t
count
)
6
{
7
const
_TCHAR
*
s
;
8
9
if
(
str
==
0
)
return
0
;
10
11
for
(
s
=
str
; *
s
&&
count
; ++
s
, --
count
);
12
13
return
s
-
str
;
14
}
15
16
/* EOF */