__uflow.c 282 B

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