fclose


Purpose
Close the file corresponding to the current input or output stream.
Synopsis
int fclose(XPRMcontext ctx, int flag);
Arguments
ctx 
Mosel's execution context
flag 
XPRM_F_READ 
Close input stream
XPRM_F_WRITE 
Close output stream
Return value
0 if successful.
Further information
This function closes the file associated to the current input or output stream. Output streams are automatically flushed before being closed. After the stream has been released, the stream that was active before is selected. Closing the default input or output stream (i.e. the streams available at start up) has no effect.
Related topics
fopen.


If you have any comments or suggestions about these pages, please send mail to docs@dashoptimization.com.