Sign in
cobalt
/
cobalt
/
25902c6cb1ab9cfd8ae2ee6b0fb52953f73deda5
/
.
/
third_party
/
musl
/
src
/
multibyte
/
mbrlen.c
blob: accf4b33150eeb865b377414001c0993123a1435 [
file
] [
log
] [
blame
]
#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
);
}