Minix1.5/lib/ansi/assert.c

Compare this file to the similar file:
Show the results in this format:

/* assert.c - diagnostics */

#include <lib.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>

/* ANSI version */
void __bad_assertion(expr, file, line)
char *expr;
char *file;
int line;
{
  fprintf(stderr,"Assertion \"%s\" failed, file \"%s\", line %d\n", 
							expr, file, line);
  abort();
}

/* Non-ANSI version */
void __assert(file, line)
char *file;
int line;
{
  fprintf(stderr, "Assertion error in file \"%s\" on line %u\n", file, line);
  abort();
}