|
|
PERROR(3) Linux Programmer's Manual PERROR(3) NAME
perror - print a system error message SYNOPSIS
#include <stdio.h> void perror(const char *s); #include <errno.h> const char * const sys_errlist[]; int sys_nerr; int errno; /* Not really declared this way; see errno(3) */ Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sys_errlist, sys_nerr: Since glibc 2.19: _DEFAULT_SOURCE Glibc 2.19 and earlier: _BSD_SOURCE DESCRIPTION
The perror() function produces a message on standard error describing the last error encountered during a call to a system or library func- tion. First (if s is not NULL and *s is not a null byte ('