perror() General Function perror() System call error messages #include <errno.h> perror(string) char *string; extern int sys_nerr; extern char *sys_errlist[]; perror prints an error message on the standard error device. The message consists of the argument string, followed by a brief description of the last system call that failed. The external variable errno contains the last error number. Normally, string is the perror of the command that failed or a file perror. The external array sys_errlist gives the list of messages used by perror. The external sys_nerr gives the number of messages in the list. ***** See Also ***** errno, errno.h, general functions COHERENT Lexicon Page 1