You may be wondering how the call to setvbuf helps, when we are reading either line by line or char by char.
您或许想知道,当我们逐行或逐字符地读时,对setvbuf的调用是如何起作用的。
Otherwise, we call the setvbuf() function to set a buffer of size INBUFSIZ (earlier #defined as 16KB) for reading from fin.
若能打开,则调用setvbuf()函数来设置大小为INBUFSIZ的缓冲区(以前用 #defined 定义为16KB)以从fin 进行读取。
It shows appropriate use of some system calls and library functions from c, including fopen, fclose, access, setvbuf, perror, strerror, and popen.
它演示了对一些系统调用和c库函数的适当使用,其中包括fopen、fclose、access、setvbuf、perror、strerror和popen。
It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.
文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。
It is needed for the file opening, closing, reading, and writing functions (fopen , fclose , fgets , getc , and so on), for the printf family of functions, and for the setvbuf function.
文件的打开、关闭、读和写函数(fopen 、fclose 、fgets 、getc等等)、printf函数系列和setvbuf函数都需要它。
应用推荐