summaryrefslogtreecommitdiffstats
path: root/man3/strerror.3
blob: abfe27ad32fdd492cea5e74248682d1710b4308d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
.\" May be distributed under the GNU General Public License
.\" References consulted:
.\"     Linux libc source code
.\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
.\"     386BSD man pages
.\" Modified Sat Jul 24 18:05:30 1993 by Rik Faith (faith@cs.unc.edu)
.TH STRERROR 3  "April 13, 1993" "GNU" "Linux Programmer's Manual"
.SH NAME
strerror \- return string describing error code
.SH SYNOPSIS
.nf
.B #include <string.h>
.sp
.BI "char *strerror(int " errnum );
.fi
.SH DESCRIPTION
The \fBstrerror()\fP function returns a string describing the error
code passed in the argument \fIerrno\fP.  The string can only be used
until the next call to \fBstrerror()\fP.
.SH "RETURN VALUE"
The \fBstrerror()\fP function returns the appropriate description
string, or an unknown error message if the error code is unknown.
.SH "CONFORMING TO"
SVID 3, POSIX, BSD 4.3, ISO 9899
.SH SEE ALSO
.BR errno "(2), " perror "(3), " strsignal (3)