Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
libunwind
/
ec4b23bf70e593a69b8d84ff31a0593993a0d295
/
.
/
tests
/
test-strerror.c
blob: 582d3225c6bffd9c2105445c4bc3e9b713e7f719 [
file
] [
log
] [
blame
]
#include
<libunwind.h>
#include
<stdio.h>
int
main
(
int
argc
,
char
**
argv
)
{
int
i
,
verbose
=
argc
>
1
;
const
char
*
msg
;
for
(
i
=
0
;
i
<
16
;
++
i
)
{
msg
=
unw_strerror
(-
i
);
if
(
verbose
)
printf
(
"%6d -> %s\n"
,
-
i
,
msg
);
}
return
0
;
}