Sign in
android
/
platform
/
external
/
musl
/
3ea3fcf78a5532e118856846df8adbf3f60ef716
/
.
/
src
/
multibyte
/
wctob.c
blob: b484a3fd01ad75b829b4be6eff710fd1a0fb31c4 [
file
] [
log
] [
blame
]
#include
<wchar.h>
#include
<stdio.h>
#include
<stdlib.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
;
}