www.delorie.com/djgpp/doc/libc-2.01/libc_607.html   search  
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.

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.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997