http://hi.baidu.com/chongxing01/blog/item/dbf1778b55f61d1ac9fc7aaa.htmlhtml
http://book.51cto.com/art/200904/121083.htm函數
setvbuf 設定緩衝函數rest
setvbuf ( pFile , NULL , _IOFBF , 1024 ); htm
if (setvbuf(input, bufr, _IOFBF, 512) != 0)blog
printf("failed to set up buffer for input file\n"); ip
Buffer size in bytes. Allowable range: 2 <= size <= INT_MAX (2147483647). Internally, the value supplied for size is rounded down to the nearest multiple of 2.get
the default BUFSIZinput
BUFSIZ(stdio.h)----> _IO_BUFSIZ(libio.h)---->G_BUFSIZ(_G_config.h)---->8192(8K)it