Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.fclose Method

Close a FILE stream. [Edit]

public static int fclose (IntPtr stream)

Parameters

stream
The FILE stream to close. [Edit]

Returns

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]

Remarks

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]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0