Implemented die() in the test program.

This commit is contained in:
Pietro Gagliardi 2015-05-03 16:44:13 -04:00
parent 511cc76ef8
commit 4eaa3ac574
1 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,13 @@
void die(const char *fmt, ...)
{
// TODO
va_list ap;
va_start(ap, fmt);
fprintf(stderr, "[test program] ");
vfprintf(stderr, fmt, ap);
fprintf(stderr, "\n");
va_end(ap);
abort();
}