Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Telix/SALT v3.15 & RS-232, Hayes - <b>fwrite</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  FWRITE

  .  Summary

  fwrite(str <buf>, int <count>, int <fh>);

  .  Description

  The fwrite function writes bytes to the file represented by the file
  handle <fh>. <count> number of bytes are written from <buf>.

  .  Return Value

  The number of bytes actually written are returned, which may be less
  than <count> if an error occurred.

  .  Example

  int f;
  str buffer[] = "1234567890123456789012345";
  f = fopen("test.dat", "w");
  fwrite(buffer, 25, f);       // write test pattern to file

See Also: fread fgets fputs fgetc fputc fopen fclose

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson