Close a stream

From , 3 Years ago, written in C, viewed 91 times.
URL https://pastebin.vip/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.  

Reply to "Close a stream"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website