__uflow.c 282 字节
Newer Older
R
Rich Felker 已提交
1 2
#include "stdio_impl.h"

3 4 5
/* This function will never be called if there is already data
 * buffered for reading. Thus we can get by with very few branches. */

R
Rich Felker 已提交
6 7
int __uflow(FILE *f)
{
8 9 10
	unsigned char c;
	if ((f->rend || !__toread(f)) && f->read(f, &c, 1)==1) return c;
	return EOF;
R
Rich Felker 已提交
11
}