Sign in
cobalt
/
cobalt
/
08336faa599332e3e3bf29b7ad38ef023018b55e
/
.
/
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
);
}