[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    strerror(3C) manual page Table of Contents

Name

strerror - get error message string

Synopsis

#include <string.h>

char *strerror(int errnum);

MT-Level

Safe

Description

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

Errors

strerror returns NULL if errnum is out-of-range.

See Also

gettext(3I) , perror(3C) , setlocale(3C)

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) .


Table of Contents