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

Mono.Unix.Native.Stdlib.fprintf Method

Print to a FILE stream.

public static int fprintf (IntPtr stream, string message)

Parameters

stream
FILE stream to write to.
message
The string to write on stream.

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.

Remarks

Requirements

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