libc.info: fwrite

Go forward to getc
Go backward to ftell
Go up to Stdio
Go to the top op libc

`fwrite'--write array elements

*Synopsis*
     #include <stdio.h>
     size_t fwrite(const void *BUF, size_t SIZE,
         size_t COUNT, FILE *FP);
   *Description*
`fwrite' attempts to copy, starting from the memory location BUF, COUNT
elements (each of size SIZE) into the file or stream identified by FP.
`fwrite' may copy fewer elements than COUNT if an error intervenes.
   `fwrite' also advances the file position indicator (if any) for FP
by the number of _characters_ actually written.
*Returns*
If `fwrite' succeeds in writing all the elements you specify, the
result is the same as the argument COUNT.  In any event, the result is
the number of complete elements that `fwrite' copied to the file.
*Portability*
ANSI C requires `fwrite'.
   Supporting OS subroutines required: `close', `fstat', `isatty',
`lseek', `read', `sbrk', `write'.