micro-wm/src/die.c

11 lines
152 B
C
Raw Normal View History

2023-10-28 15:14:49 +00:00
#include "die.h"
void die(const char *msg, int flag) {
if (flag)
fprintf(stderr, "%s: %s\n", msg, strerror(errno));
else
puts(msg);
exit(1);
}