Sign in
mojo
/
mojo
/
2f64806b047b83f7c49e0525d8f3499d7be23e27
/
.
/
fusl
/
src
/
multibyte
/
wctob.c
blob: 3be4b4c89883aa2b79ff96f8baf66b57d2e9815f [
file
] [
log
] [
blame
]
#include
<wchar.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
;
}