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