strerror.3 - scc - simple c99 compiler
(HTM) git clone git://git.simple-cc.org/scc
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
strerror.3 (653B)
---
1 .TH strerror 3
2 .SH NAME
3 strerror - get error message string
4 .SH SYNOPSIS
5 #include <string.h>
6
7 char *strerror(int errnum)
8 .SH DESCRIPTION
9 The
10 .BR strerror ()
11 function maps the number passed with errnum
12 to a message string.
13 .PP
14 Typically, the values for
15 .I errnum
16 come from errno,
17 but strerror shall map any value of type int to a message.
18 .PP
19 The array pointed to by the pointer returned
20 shall not be modified by the program,
21 but may be overwritten
22 by a subsequent call to the
23 .B strerror
24 function.
25 .SH RETURN VALUE
26 The function returns a pointer to the string,
27 the contents of which are locale-specific.
28 .SH STANDARDS
29 ISO/IEC 9899:1999 Section 7.21.6.2