Name
fwrite function — Writes binary data
Synopsis
size_t fwrite(const void* ptr, size_t size, size_t count, FILE* stream)
The fwrite
function writes
up to count
elements to stream
. Each element is size
bytes long, and ptr
points to the first such element. The
memory must have POD type (see Chapter
6).
The return value is the number of complete elements
successfully written to stream
.
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.