Fanuc C-Executer Operating Manual
B-62443EN-3/03E
- 156 -
------------------------------------------------------------------------------
6.4 Close a stream. <Main,Alarm,Comm>
------------------------------------------------------------------------------
[Name]
fclose
[Syntax]
#include <stdio.h>
int fclose( FILE *stream ) ;
[Arguments]
stream Pointer to a FILE structure.
[Return]
Returns zero if a stream has been successfully closed. If not,
returns EOF.
[Description]
Closes specified stream. Buffers linked to the stream will be flushed
before closing. Buffers allocated by the system will be deallocated.
But buffers which has been allocated by user using "setbuf" or
"setvbuf" will not be deallocated automatically.