aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/assert_error.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/assert_error.c')
-rw-r--r--FICS/assert_error.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/FICS/assert_error.c b/FICS/assert_error.c
new file mode 100644
index 0000000..2d26491
--- /dev/null
+++ b/FICS/assert_error.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include "assert_error.h"
+
+__dead void
+_assert_error(const char *file, const long int line)
+{
+ (void) fprintf(stderr, "Assertion failed: file %s, line %ld.\n",
+ file, line);
+ abort();
+}