|
||
size_t fwrite( void *buf, size_t size, size_t n,FILE *stream )
void *buf; /* address of data buffer */ size_ t size; /* size of each buffer element */ size_ t n; /* number of buffer elements */ FILE *stream; /* output stream */
|
|
|
Synopsis |
#include "stdio.h"
The fwrite function retrieves n objects, each of size size bytes, from the buffer pointed to by buf , and writes them into the file associated with fp .
|
|
Parameters |
buf is the address of the buffer where the data is stored, and should be at least size * n bytes in length. size and n are integers. stream is a stream pointer, open for input.
|
|
Return Value |
fwrite returns the actual number of objects written, which will be less than or equal to n .
|
|
See Also |
|
|
|
|