diff options
author | Karel Kočí <cynerd@email.cz> | 2018-11-05 23:04:32 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2018-11-05 23:04:32 +0100 |
commit | d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c (patch) | |
tree | fa46c7ec3902a9549393df154f24b25ef7517875 /common.c | |
parent | 78d9d66ad6ce6455690670173623ad420d12170d (diff) | |
parent | 2b71a22755bae132a639fe10475a0d42e582d244 (diff) | |
download | surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.gz surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.tar.bz2 surf-d7f641d5dd6c099d4a9274a18fcfb89df00d4b4c.zip |
Merge branch 'surf-webkit2' into mysurfv2.0.7
Diffstat (limited to 'common.c')
-rw-r--r-- | common.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common.c b/common.c new file mode 100644 index 0000000..42662ed --- /dev/null +++ b/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); +} + |