setbuf 函数 void setbuf(FILE *stream, char *buf); 为流设置一个缓冲区,当缓冲区被填满或调用fflush,缓冲区中的数据写到流中 如果buf设置为NULL,表示无缓冲区 From http://www.cnblogs.com/caosiyang/