From 2e8af6099010dc3b525cfd6517b8754bca9e99b9 Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Sat, 26 Oct 2024 18:01:51 -0400 Subject: initCL() --- sysfatal.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sysfatal.c (limited to 'sysfatal.c') diff --git a/sysfatal.c b/sysfatal.c new file mode 100644 index 0000000..9a63264 --- /dev/null +++ b/sysfatal.c @@ -0,0 +1,15 @@ +#include +#include +#include +#include "sysfatal.h" + +void +sysfatal(const char * format, ...) { + va_list args; + + va_start(args, format); + vfprintf(stderr, format, args); + va_end(args); + fflush(NULL); + exit(1); +} -- cgit v1.2.3