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

Mono.Unix.Native.Stdlib.printf Method

Prints a message on Stdlib.stdout.

public static int printf (string message)

Parameters

message
The message to print.

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