Mono Class Library: Mono.Unix.Native.Stdlib Overview | MembersMono.Unix.Native.Stdlib.perror Method |
Print an error message to Stdlib.stderr. [Edit]
|
- s
- The error message prefix to print. [Edit]
The perror() function returns the value 0 if successful; otherwise the value -1 is returned and Stdlib.GetLastError indicates the error. [Edit]
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]
Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0