Mono Class Library: Mono.Unix.Native.Stdlib Overview | MembersMono.Unix.Native.Stdlib.fclose Method |
Close a FILE stream. [Edit]
|
- stream
- The FILE stream to close. [Edit]
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).
[Edit]
The fclose() function dissociates the named stream from its underlying file or set of functions. If the stream was being used for output, any buffered data is written first, using Stdlib.fflush(3). [Edit]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0