source:
asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/signal/psignal.c
Last change on this file was 352, checked in by , 6 years ago | |
---|---|
|
|
File size: 211 bytes |
Line | |
---|---|
1 | #include <stdio.h> |
2 | #include <string.h> |
3 | #include <signal.h> |
4 | |
5 | void psignal(int sig, const char *msg) |
6 | { |
7 | char *s = strsignal(sig); |
8 | if (msg) fprintf(stderr, "%s: %s\n", msg, s); |
9 | else fprintf(stderr, "%s\n", s); |
10 | } |
Note:
See TracBrowser
for help on using the repository browser.