fread

Reads data from the stream.

extern (C) nothrow @nogc extern
size_t
fread
(
void* ptr
,
size_t size
,
size_t count
,)

Parameters

ptr void*

Buffer to write to.

size size_t

Size of a single unit of data in bytes

count size_t

The amount of units to write to the buffer.

stream FILE*

The stream to read from.

Return Value

Type: size_t

The amount of elements read.

Meta