summaryrefslogtreecommitdiff
path: root/src/libstddjb/strerr_diev.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb/strerr_diev.c')
-rw-r--r--src/libstddjb/strerr_diev.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/libstddjb/strerr_diev.c b/src/libstddjb/strerr_diev.c
new file mode 100644
index 0000000..bf1e8fc
--- /dev/null
+++ b/src/libstddjb/strerr_diev.c
@@ -0,0 +1,13 @@
+/* ISC license. */
+
+/* MT-unsafe */
+
+#include <unistd.h>
+
+#include <skalibs/strerr.h>
+
+void strerr_diev (int e, char const *const *v, unsigned int n)
+{
+ strerr_warnv(v, n) ;
+ _exit(e) ;
+}