shithub: scc

ref: 3cb873827cfb046e36a7b7e32a707a5b7aa96426
dir: /doc/man3/strerror.3/

View raw version
.TH strerror 3
.SH NAME
strerror - get error message string
.SH SYNOPSIS
#include <string.h>

char *strerror(int errnum)
.SH DESCRIPTION
The
.BR strerror ()
function maps the number passed with errnum
to a message string.
.PP
Typically, the values for
.I errnum
come from errno,
but strerror shall map any value of type int to a message.
.PP
The array pointed to by the pointer returned
shall not be modified by the program,
but may be overwritten
by a subsequent call to the
.B strerror
function.
.SH RETURN VALUE
The function returns a pointer to the string,
the contents of which are locale-specific.
.SH STANDARDS
ISO/IEC 9899:1999 Section 7.21.6.2