aboutsummaryrefslogtreecommitdiff
path: root/.repos/surf/common.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-14 16:06:38 +0200
committerMarvin Borner2020-04-14 16:06:38 +0200
commit5fdba75bfabd45cb1bf38af86d3cec641d488093 (patch)
tree37732d88ad7a6a04987a8842fc9d58106db0a7a0 /.repos/surf/common.c
parent5a1e1cb5fc7481d02fec611bfadd2d2928448c59 (diff)
Added surf configurations
Diffstat (limited to '.repos/surf/common.c')
-rw-r--r--.repos/surf/common.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/.repos/surf/common.c b/.repos/surf/common.c
new file mode 100644
index 0000000..42662ed
--- /dev/null
+++ b/.repos/surf/common.c
@@ -0,0 +1,15 @@
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+
+void
+die(const char *errstr, ...)
+{
+ va_list ap;
+
+ va_start(ap, errstr);
+ vfprintf(stderr, errstr, ap);
+ va_end(ap);
+ exit(1);
+}
+