Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
multibyte
/
btowc.c
blob: 1d434f876045ca4bb6ccc1086b7736d775dae84b [
file
] [
log
] [
blame
]
#include
<stdio.h>
#include
<stdlib.h>
#include
<wchar.h>
#include
"internal.h"
wint_t
btowc
(
int
c
)
{
int
b
=
(
unsigned
char
)
c
;
return
b
<
128U
?
b
:
(
MB_CUR_MAX
==
1
&&
c
!=
EOF
)
?
CODEUNIT
(
c
)
:
WEOF
;
}