请输入您要查询的百科知识:

 

词条 fclose
释义

§ 解释

函数名: fclose

功 能: 关闭一个流

用 法: int fclose(FILE *stream);

§ 程序例

#include <string.h>

#include <stdio.h>

int main(void)

{

FILE *fp;

char buf【11】 = "0123456789";

/* create a file containing 10 bytes */

fp = fopen("DUMMY.FIL", "w");

fwrite(&buf, strlen(buf), 1, fp);

/* close the file */

fclose(fp);

return 0;

}

随便看

 

百科全书收录594082条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/9/21 21:42:59