perror()

Syntax
  #include <stdio.h>

  
  void perror(const char *msg);

  
Description

perror() writes an error message appropriate for the current value of errno to stderr. The character string msg is part of perror's output.

See also

assert() and

strerror()