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