summaryrefslogtreecommitdiff
path: root/crash.c
diff options
context:
space:
mode:
authorCarson Fleming <[email protected]>2026-01-24 22:28:22 -0500
committerCarson Fleming <[email protected]>2026-01-24 22:28:22 -0500
commite72088d79804e4f689196f4bc700fb9348c77209 (patch)
tree195e8b20cf633a0b9fc2ef6754c08742a9ce30e1 /crash.c
downloadsafec-e72088d79804e4f689196f4bc700fb9348c77209.tar.gz
initial commit
Diffstat (limited to 'crash.c')
-rw-r--r--crash.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/crash.c b/crash.c
new file mode 100644
index 0000000..f28d88a
--- /dev/null
+++ b/crash.c
@@ -0,0 +1,12 @@
+#include "crash.h"
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+void crash(const char* format, ...) {
+ va_list args;
+ va_start(args, format);
+ vfprintf(stderr, format, args);
+ exit(1);
+ va_end(args);
+} \ No newline at end of file