Table of Contents
Previous Section Next Section

perror

#include <stdio.h>void perror(const char *str);

The perror( ) function maps the value of the global variable errno onto a string and writes that string to stderr. If the value of str is not null, that string is written first, followed by a colon, and then the implementation-defined error message.


Table of Contents
Previous Section Next Section