Sign in
third-party-mirror
/
mingw-w64
/
79951edef1e76a79d7ce0fa1cf94391b2f6b3d94
/
.
/
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
;
}