- stream
- The FILE stream to close.
Upon successful completion 0 is returned. Otherwise, Stdlib.EOF is returned and the global variable errno is set to indicate the error. In either case no further access to the stream is possible.
The fclose() function may also fail and set errno for any of the errors specified for the routines Syscall.close(2) or Stdlib.fflush(3).