Writes a specified number of items to the file.
#include <stdio.h> size_t fwrite (const void *ptr, size_t size_of_item, size_t number_items, FILE *file_ptr);
typedef unsigned int size_t
The writing begins at the current location in the file. The items are written from storage beginning at the location given by the first argument. You must also specify the size of an item, in bytes.
If the file pointed to by file_ptr is a record file, the fwrite function outputs at least number_items records, each of length size_of_item.
x | The number of items written. The number of records written depends upon the maximum record size of the file. |