__uflow.c 237 B

1234567891011
  1. #include "stdio_impl.h"
  2. /* This function assumes it will never be called if there is already
  3. * data buffered for reading. */
  4. int __uflow(FILE *f)
  5. {
  6. unsigned char c;
  7. if (!__toread(f) && f->read(f, &c, 1)==1) return c;
  8. return EOF;
  9. }