Sign in
cobalt
/
cobalt
/
286dd7840608e9cf78bc4a603ff2ec2ee39750c5
/
.
/
src
/
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
);
}