perror

Prints an error message

Local Servers:blocking
Remote Servers:N/A
Classification:ANSI
Platform:NLM
Service:Debug

Syntax

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

Parameters

prefix

(IN) Points to the error message to print.

Return Values

perror returns no values. Because perror uses the fprintf function, errno can be set when an error is detected during the execution of the function.

Remarks

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

See Also

strerror (NDK: Program Management)