mirror of
https://github.com/fluencelabs/musl
synced 2025-07-31 14:21:57 +00:00
11 lines
211 B
C
11 lines
211 B
C
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <signal.h>
|
|
|
|
void psignal(int sig, const char *msg)
|
|
{
|
|
char *s = strsignal(sig);
|
|
if (msg) fprintf(stderr, "%s: %s\n", msg, s);
|
|
else fprintf(stderr, "%s\n", s);
|
|
}
|