From fc7e5141a92fa3725452b0c08fad7b95c7468d85 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Sun, 24 Apr 2022 22:00:09 +0200 Subject: Add lvfatalf function --- clog.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'clog.c') diff --git a/clog.c b/clog.c index ebe2d6a..af1eff5 100644 --- a/clog.c +++ b/clog.c @@ -38,3 +38,9 @@ int lvprintf(const char *format, va_list ap) n += vprintf(format, ap); return n; } + +void lvfatalf(const char *format, va_list ap) +{ + lvprintf(format, ap); + exit(EXIT_FAILURE); +} -- cgit v1.2.3