Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsstrerror(3C)


NAME

 strerror - get error message string

SYNOPSIS

 
#include <string.h>
char *strerror(int errnum);

DESCRIPTION

 

The strerror() function maps the error number in errnum to an error message string, and returns a pointer to that string. It uses the same set of error messages as perror(3C). The returned string should not be overwritten.

RETURN VALUES

 

The strerror() function returns the string "Unknown error" if errnum is out of range.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
Interface StabilityStandard
MT-LevelSafe

SEE ALSO

 

gettext(3C), perror(3C), setlocale(3C), attributes(5)

NOTES

 

If the application is linked with -lintl, then messages returned from this function are in the native language specified by the LC_MESSAGES locale category; see setlocale(3C).


SunOS 5.9Go To TopLast Changed 17 Jan 2002

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.