Name
fread function — Reads binary data
Synopsis
size_t fread(void* ptr, size_t size, size_t count, FILE* stream)
The fread
function reads up
to count
elements from stream
into the memory that ptr
points to. The memory must have POD
type (see Chapter 6). Each
element is size
bytes long. It
returns the number of elements that were read successfully.
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.