Sign in
mojo
/
mojo
/
28dd561326b6d885e105e6bfa34f9b2770ce3910
/
.
/
fusl
/
src
/
multibyte
/
wctob.c
blob: 4aeda6a132b5145a5e4ebb08bce8c9cf43e831e9 [
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
;
}