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

Mono.Unix.Native.Stdlib.perror Method

Print an error message to Stdlib.stderr. [Edit]

public static int perror (string s)

Parameters

s
The error message prefix to print. [Edit]

Returns

The perror() function returns the value 0 if successful; otherwise the value -1 is returned and Stdlib.GetLastError indicates the error. [Edit]

Remarks

The perror() function finds the error message corresponding to the current value of Stdlib.GetLastError and writes it, followed by a newline, to the standard error file descriptor. If the argument string is not null and does not point to the null character, this string is prepended to the message string and separated from it by a colon and space (": "); otherwise, only the error message string is printed. [Edit]

Requirements

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