aboutsummaryrefslogtreecommitdiff
path: root/clog.c
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2022-04-24 22:00:09 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2022-04-24 22:00:09 +0200
commitfc7e5141a92fa3725452b0c08fad7b95c7468d85 (patch)
treed8de0e5f3fc06417cde03dafcfa279a969fe070a /clog.c
parent5062b051afd47c83fe0e976c5060e8adc08db27b (diff)
Add lvfatalf function
Diffstat (limited to 'clog.c')
-rw-r--r--clog.c6
1 files changed, 6 insertions, 0 deletions
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);
+}