fclose是一个函数名,功能是关闭一个流。注意:使用fclose()函数就可以把缓冲区内最后剩余的数据输出到内核缓冲区,并释放文件指针和有关的缓冲区。 函数原型:int fclose( FILE *fp ); 返回值:如果流成功关闭,fclose 返回 0,否则返回EOF(-1)。(如果流为NULL,而且程序可以继续执行,fclose设定error number给EINVAL,并返回EOF。)
链接地址 文件的关闭(fclose函数) 在使用完一个文件后应该关闭它,“关闭”文件就是使文件指针与文件脱离,此后不能再通过该指针对原来与其相联系的文件进行读...
基于142个网页-相关网页
The semantics of fopen require a complementary fclose.
fopen 的语义需要补充性的 fclose。
Of course, with the exception of fclose, you are likely already processing the return values on these.
当然,除 fclose 以外,您可能已经对这些函数的返回值都进行了处理。
Skipping ahead to the end of Listing 1, fclose serves the opposite function of fopen: it closes the connection to the file or URL.
向前跳至清单1的末尾,fclose将实现与fopen相反的功能:它将关闭指向文件或URL的连接。
应用推荐