Sign in
third-party-mirror
/
mingw-w64
/
refs/tags/v4.0.6
/
.
/
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
;
}