surf

surf browser, a WebKit based browser
git clone git://git.suckless.org/surf
Log | Files | Refs | README | LICENSE

common.c (190B)


      1 #include <stdarg.h>
      2 #include <stdio.h>
      3 #include <stdlib.h>
      4 
      5 void
      6 die(const char *errstr, ...)
      7 {
      8 	va_list ap;
      9 
     10 	va_start(ap, errstr);
     11 	vfprintf(stderr, errstr, ap);
     12 	va_end(ap);
     13 	exit(1);
     14 }
     15