git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@784 c06c8d41-db1a-0410-9941-cceddc491573
Z262AMUK447BTC7MVOPQQ3NZTQXQOE5JODNHXN3IU7WL4ABSW5YQC
exit(end_arg);
if (format)
{
va_list arg;
va_start(arg, format);
char buffer[500];
vsnprintf(buffer, sizeof buffer, format, arg);
va_end(arg);
if (error.empty())
error = std::string(buffer);
else
error = std::string(buffer) + ": " + error;
}
if (error.length())
{
if (error[error.length() - 1] != '\n')
error += "\n";
fprintf(stderr, "%s", error.c_str());
}
exit(exit_code);
snprintf( info, INFO_SIZE, "\nIncomplete read of \"%s\" - aborting.\n", cha_fil.c_str());
perror(info);
end(-1);
end(-1, false, "\nIncomplete read of \"%s\" - aborting.\n",
cha_fil.c_str());
if (!charf) {
snprintf(info, INFO_SIZE, "Unable to open \"%s\" for writing!\n",
charFile.c_str());
perror(info);
end(-1);
}
if (!charf)
end(-1, true, "Unable to open \"%s\" for writing!\n", charFile.c_str());
{
snprintf(info, INFO_SIZE, "Unable to open %s for reading!\n",
charFile.c_str() );
perror(info);
end(-1);
}
end(-1, true, "Unable to open %s for reading!\n", charFile.c_str() );
{
snprintf( info, INFO_SIZE, "\nIncomplete read of \"%s\" - aborting.\n",
charFile.c_str());
perror(info);
end(-1);
}
end(-1, false, "\nIncomplete read of \"%s\" - aborting.\n",
charFile.c_str());