#include <stdio.h>
U32 fread (
void* buffer, /* storage buffer for data */
U32 size, /* size of each item */
U32 count, /* number of items to read */
FILE* stream); /* file stream to read from */
Description
The function fread reads a number of items with a given
size from a data stream to a buffer. The parameter
buffer is a void pointer to a buffer to store the
items read. The parameter size defines the item
size in bytes. The parameter count defines the
number of items to read. The parameter stream is a
file pointer defining the data stream to read.
The function is included in the library RL-FlashFS. The prototype
is defined in the file stdio.h.
Return Value
number of items read - on success. This number could be
smaller than count if an error occurred or the
end-of-file condition was reached.
Note
The file position indicator is undefined when errors
occurred.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.