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