Sign in
third-party-mirror
/
mingw-w64
/
f4ad72ffb49efd44fdfd0ff1d64418b0e2da9455
/
.
/
mingw-w64-crt
/
misc
/
wcsnlen.c
blob: b7dca79d5ad1be9aa2a2d4e76db67e83b813b364 [
file
] [
log
] [
blame
]
#define
__CRT__NO_INLINE
#include
<string.h>
size_t
__cdecl
wcsnlen
(
const
wchar_t
*
w
,
size_t
ncnt
)
{
size_t
n
=
0
;
for
(;
n
<
ncnt
&&
*
w
!=
0
;
n
++,
w
++)
;
return
n
;
}