|
|
#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.
|
|