diff options
| author | Carson Fleming <[email protected]> | 2026-01-24 22:28:22 -0500 |
|---|---|---|
| committer | Carson Fleming <[email protected]> | 2026-01-24 22:28:22 -0500 |
| commit | e72088d79804e4f689196f4bc700fb9348c77209 (patch) | |
| tree | 195e8b20cf633a0b9fc2ef6754c08742a9ce30e1 /crash.c | |
| download | safec-e72088d79804e4f689196f4bc700fb9348c77209.tar.gz | |
initial commit
Diffstat (limited to 'crash.c')
| -rw-r--r-- | crash.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
