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