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

Mono.Unix.Native.Stdlib.fprintf Method

Print to a FILE stream. [Edit]

public static int fprintf (IntPtr stream, string message)

Parameters

stream
FILE stream to write to. [Edit]
message
The string to write on stream. [Edit]

Returns

Returns the number of characters printed or a negative value if an error occurs, and Stdlib.GetLastError indicates the error.
Usage

The following errors are specified:

ErrorDetails
Errno.EILSEQAn invalid wide character code was encountered
Errno.ENOMEMInsufficient storage space is available.

Any of the errors documented for the Syscall.write system call may also be returned.

[Edit]

Remarks

[Edit]

Requirements

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