Implemented die() in the test program.
This commit is contained in:
parent
511cc76ef8
commit
4eaa3ac574
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue