blob: e18ae303994ca7701748c528e795b78e6a23a89a [file] [log] [blame]
#include "stdio_impl.h"
/* This function assumes it will never be called if there is already
* data buffered for reading. */
int __uflow(FILE* f) {
unsigned char c;
if (!__toread(f) && f->read(f, &c, 1) == 1)
return c;
return EOF;
}