·2,447,543篇论文数据,部分数据来源于NoteExpress
The fclose function closes an open file.
函数的作用是:关闭文件。
youdao
The semantics of fopen require a complementary fclose.
fopen 的语义需要补充性的 fclose。
The fgets, fgetss, fread, fscanf, and fclose functions also return False on error.
fscanf 和 fclose 函数在出错时也返回 False。
fclose是一个函数名,功能是关闭一个流。注意:使用fclose()函数就可以把缓冲区内最后剩余的数据输出到内核缓冲区,并释放文件指针和有关的缓冲区。 函数原型:int fclose( FILE *fp ); 返回值:如果流成功关闭,fclose 返回 0,否则返回EOF(-1)。(如果流为NULL,而且程序可以继续执行,fclose设定error number给EINVAL,并返回EOF。)
详细内容
应用推荐
模块上移
模块下移
不移动