1#include "internal.h" 2#include <stdio.h> 3#include <stdlib.h> 4#include <wchar.h> 5 6wint_t btowc(int c) { 7 int b = (unsigned char)c; 8 return b < 128U ? b : (MB_CUR_MAX == 1 && c != EOF) ? CODEUNIT(c) : WEOF; 9} 10