Ruby
2.5.0dev(2017-10-22revision60238)
Main Page
Related Pages
Modules
+
Data Structures
Data Structures
Data Structure Index
+
Data Fields
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
$
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Typedefs
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
y
+
Enumerations
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
missing
strerror.c
Go to the documentation of this file.
1
/* public domain rewrite of strerror(3) */
2
3
#include "
ruby/missing.h
"
4
5
extern
int
sys_nerr
;
6
extern
char
*
sys_errlist
[];
7
8
static
char
msg[50];
9
10
char
*
11
strerror
(
int
error)
12
{
13
if
(error <= sys_nerr && error > 0) {
14
return
sys_errlist
[error];
15
}
16
snprintf
(msg,
sizeof
(msg),
"Unknown error (%d)"
, error);
17
return
msg;
18
}
sys_nerr
int sys_nerr
sys_errlist
char * sys_errlist[]
strerror
char * strerror(int error)
Definition:
strerror.c:11
missing.h
snprintf
#define snprintf
Definition:
subst.h:6
Generated by
1.8.13