Initializing help system before first use

fwrite

fwrite


Purpose
Write a block of data to the current output stream.
Synopsis
long fwrite(XPRMcontext ctx, void *buf, long size);
Arguments
ctx 
Mosel's execution context
buf 
Buffer where data to be written is stored
size 
Size of the buffer (number of bytes)
Return value
0 if successful, -1 in case of error.
Further information
This function writes a block of data to the default output stream. The successful completion of this function does not guarantee that all data is actually saved since IO operations are buffered. A call to fflush can be used to make sure all data is transmitted.
Related topics