Initializing help system before first use

fread

fread


Purpose
Read a block of data from the current input stream.
Synopsis
long fread(XPRMcontext ctx, void *buf, long size);
Arguments
ctx 
Mosel's execution context
buf 
Buffer where to store read data
size 
Size of the buffer (number of bytes)
Return value
The number of bytes actually read, 0 when end of stream has been reached and -1 in case of error.
Further information
This function reads a block of data from the default input stream. A returned size smaller than the maximum authorised does not necessarily implies an end of stream.