Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d4-release
/
.
/
src
/
multibyte
/
mbrlen.c
blob: accf4b33150eeb865b377414001c0993123a1435 [
file
] [
log
] [
blame
] [
edit
]
#include
<wchar.h>
size_t
mbrlen
(
const
char
*
restrict s
,
size_t
n
,
mbstate_t
*
restrict st
)
{
static
unsigned
internal
;
return
mbrtowc
(
0
,
s
,
n
,
st
?
st
:
(
mbstate_t
*)&
internal
);
}