Namespaces
Variants
Views
Actions

std::fwrite

From cppreference.com
< cpp | io | c
Defined in header <cstdio>
int fwrite( const void *buffer, size_t size, size_t count, FILE *stream );

Writes count of objects in the given array buffer to the output stream stream. Objects are not interpreted in any way.

[edit] Parameters

buffer - pointer to the first object object in the array to be written
size - size of each object
count - the number of the objects to be written

[edit] Return value

Number of objects written successfully

[edit] See also

prints formatted output to stdout, a file stream or a buffer
(function) [edit]
writes a character string to a file stream
(function) [edit]
reads from a file
(function) [edit]
C documentation for fwrite