surf/common.c
Quentin Rameau 1901359efa Add a file for shared functions
New common.[hc] files where shared functions between surf and
webkitextension will be put. First addition is die().
2018-10-08 11:38:03 +02:00

15 lines
190 B
C

#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);
}