PERROR
Section: C Library Functions (3)
Index
Return to Main Contents
BSD mandoc
BSD 4
NAME
perror
- write error messages to standard error
SYNOPSIS
Fd #include <stdio.h>
Ft void
Fn perror const char *string
DESCRIPTION
The
Fn perror
function looks up the language-dependent error message string affiliated
with an error number and writes it, followed by a new-line, to the
standard error stream.
If the argument
Fa string
is
non- NULL
it is prepended to the message string and separated from it by
a colon and a space
(`:'
)
If
Fa string
is
NULL
only the error message string is printed.
The contents of the error message string is the same as those returned by
Fn strerror
with argument
Fa errno .
SEE ALSO
intro(2),
psignal(3),
setlocale(3),
strerror(3)
STANDARDS
The
Fn perror
function conforms to
St -ansiC .
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- STANDARDS
-
This document was created by
man2html,
using the manual pages.
Time: 15:52:50 GMT, January 15, 2023