55 const char *source,
int line)
57 FILE *fp = fopen(path, mode);
60 char const format_string[] =
"%s (path: \"%s\")";
61 char const * err_string = strerror(errno);
63 xmalloc(strlen(format_string) + strlen(err_string) + strlen(path));
64 sprintf(error_buffer,
"xfopen: %s (path: \"%s\")", err_string, path);
void symprefix abort_message(const char *msg, const char *source, int line)
add versions of standard API functions not returning on error
#define xfopen(path, mode)
Define library-specific symbol prefix macros.
#define symprefix(symbol)