Reads up to the specified number of items of the specified size from the input stream and stores them in a buffer.
#include <stdio.h> size_t fread (void *buffer, size_t size, size_t count, FILE *stream);
buffer
size
count
stream
The file pointer associated with stream (if there is one) is increased by the number of bytes actually read.
If the stream is opened in text mode, <CR><LF> pairs are replaced with single <LF> characters. The replacement has no effect on the file pointer or the return value.
The file pointer is indeterminate if an error occurs. The value of a partially read item cannot be determined.
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/stdio.h | stdio.h | clib.lib |