strerror(3C)


strerror -- get error message string

Synopsis

   #include <string.h> 
   

char *strerror (int errnum);

Description

strerror maps the error number in errnum to an error message string, and returns a pointer to that string. It returns the string "Unknown Error" for invalid values of errnum.

strerror uses the same set of error messages as perror. The returned string should not be overwritten.

Files

Message catalog: uxsyserr

References

perror(3C)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.