size_t fwrite(
	const void * __ptr,
	size_t __size,
	size_t __nmemb,
	FILE * __stream)

Write nmemb objects, size bytes each, to stream. The first byte of the first object is referenced by ptr.

Returns the number of objects successfully written, i. e. nmemb unless an output error occured.