btowc.c 112 B

12345678
  1. #include <stdio.h>
  2. #include <wchar.h>
  3. wint_t btowc(int c)
  4. {
  5. c = (unsigned char)c;
  6. return c<128U ? c : EOF;
  7. }