perror

Prints an error message to standard error.

Library:LibC
Classification:ANSI
Service:File and Directory I/O

Syntax

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

Parameters

string

(IN) Points to the error message to print.

Remarks

The perror function prints, on the file designated by stderr, the error message corresponding to the error number contained in errno.