delorie.com/djgpp/doc/libc/libc_759.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

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


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004