size_t fwrite(
const void* buffer,
size_t size,
size_t count,
FILE* stream
);
Parameters
buffer
Pointer to data to be written.
size
Item size in bytes.
count
Maximum number of items to be written.
stream
Pointer to FILE structure.
Return Values
fwrite returns the number of full items actually written, which might be less than count if an error occurs. Also, if an error occurs, the file-position indicator cannot be determined.