[C] 关闭一个流 →→→→→进入此内容的聊天室

来自 , 2021-04-19, 写在 C, 查看 128 次.
URL http://www.code666.cn/view/934b5358
  1. #include <string.h>
  2. #include <stdio.h>
  3.  
  4. int main ( void )
  5. {
  6.         FILE *fp;
  7.         char buf[11] = "0123456789";
  8.  
  9.         /* create a file containing 10 bytes */
  10.         fp = fopen ( "DUMMY.FIL", "w" );
  11.         fwrite ( &buf, strlen ( buf ), 1, fp );
  12.  
  13.         /* close the file */
  14.         fclose ( fp );
  15.         return 0;
  16. }
  17.  

回复 "关闭一个流"

这儿你可以回复上面这条便签

captcha