#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);
}