perror

Full prototype:

void perror(const char*);  

Purpose and Notes:

Prints the string passed in as the first argument followed by a colon, a space, and the string asscoiated with the current value of errno and a newline to the standard error stream.

If the string passed in is NULL then it just prints the string associated with errno.

Returns:

void- Nothing.

Argument 1:

const char*- A custom string to print before a colon:, space and the string associated with the current value of errno.

Example 1
  1    FILLER SOURCE CODE
FILLER TERMINAL