void *p = malloc(n);
if(!p && n != 0) {
fprintf(stderr,
- "selector: cannot allocate memory: %s\n", strerror(errno));
+ "mymail: cannot allocate memory: %s\n", strerror(errno));
exit(EXIT_FAILURE);
}
return p;
return result;
} else {
fprintf(stderr,
- "mymail: Cannot open file '%s' (%s) with mode \"%s\".\n",
- path, comment, mode);
+ "mymail: Cannot open file '%s' (%s) with mode \"%s\": %s\n",
+ path, comment, mode,
+ strerror(errno));
exit(EXIT_FAILURE);
}
}