Name
FRead -- read file data into memory buffer (V6.0)
Synopsis
int read = FRead(APTR handle, APTR buf, int size);
Function
This function has to read the specified number of bytes into the memory buffer specified in parameter 2. It has to return the number of bytes actually read.

This function must be implemented in a thread-safe manner.

Inputs
handle
file handle returned by FOpen()
buf
pointer to memory buffer to receive the data read
size
number of bytes to read from file handle
Results
read
number of bytes actually read

Show TOC