table of contents
other versions
- wheezy 3.44-1
- jessie 3.74-1
- jessie-backports 4.10-2~bpo8+1
- testing 4.10-2
- unstable 4.10-2
PERROR(3) | Linux Programmer's Manual | PERROR(3) |
NAME¶
perror - print a system error messageSYNOPSIS¶
#include <stdio.h>Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
DESCRIPTION¶
The routine perror() produces a message on the standard error output, describing the last error encountered during a call to a system or library function. First (if s is not NULL and *s is not a null byte ('\0')) the argument string s is printed, followed by a colon and a blank. Then the message and a new-line.CONFORMING TO¶
The function perror() and the external errno (see errno(3)) conform to C89, C99, 4.3BSD, POSIX.1-2001. The externals sys_nerr and sys_errlist conform to BSD.NOTES¶
The externals sys_nerr and sys_errlist are defined by glibc, but in <stdio.h>.SEE ALSO¶
err(3), errno(3), error(3), strerror(3)COLOPHON¶
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/.2012-04-17 |