repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
set AD bit in dns queries, suppress for internal use
[musl.git]
/
src
/
multibyte
/
mbrlen.c
blob
accf4b33150eeb865b377414001c0993123a1435
1
#include <wchar.h>
2
3
size_t
mbrlen
(
const char
*
restrict s
,
size_t
n
,
mbstate_t
*
restrict st
)
4
{
5
static unsigned
internal
;
6
return
mbrtowc
(
0
,
s
,
n
,
st
?
st
: (
mbstate_t
*)&
internal
);
7
}