From e4c74e9d1c97feccb0c5337baceab4fc4aec592c Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 24 Jan 2022 21:17:08 +0100 Subject: Merged two random sources into this repository --- panic.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 panic.c (limited to 'panic.c') diff --git a/panic.c b/panic.c new file mode 100644 index 0000000..ef4475e --- /dev/null +++ b/panic.c @@ -0,0 +1,14 @@ +#include +#include +#include +#include + + +noreturn void panic(char * fmt, ...) +{ + va_list args; + va_start(args, fmt); + vdprintf(2, fmt, args); + va_end(args); + exit(1); +} -- cgit v1.1