size_t fwrite(const void *ptr
, FILE *stream
Writes data from the array pointed to by ptr to the given
stream. It writes nmemb number of elements of size
size. The total number of bytes written is (
On success the number of elements written is returned. On
error the total number of elements successfully written (which
may be zero) is returned.