Go to the first, previous, next, last section, table of contents.


strerror

Syntax

#include <string.h>

char *strerror(int error);

Description

This function returns a string that describes the error.

Return Value

A pointer to a static string that should not be modified or free'd.

Portability

ANSI, POSIX

Example

if (f=fopen("foo", "r") == 0)
  printf("Error! %s: %s\n", "foo", strerror(errno));


Go to the first, previous, next, last section, table of contents.