home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / fwrite.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  479 b   |  27 lines

  1. @node fwrite, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. size_t fwrite(void *buffer, size_t size, size_t number, FILE *file);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function writes @var{size}*@var{number} characters from @var{buffer}
  13. to @var{file}.
  14.  
  15. @subheading Return Value
  16.  
  17. The number of items of size @var{size} written, or -1 on error.
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. int foo[10];
  23. fwrite(foo, sizeof(int), 10, stdin);
  24. @end example
  25.  
  26.  
  27.