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