added new stuff
This commit is contained in:
parent
dbf7e03996
commit
8a34fa50f7
11 changed files with 328 additions and 36 deletions
18
util.c
Normal file
18
util.c
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
|
||||
* See LICENSE file for license details.
|
||||
*/
|
||||
|
||||
#include <stdarg.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void
|
||||
error(char *errstr, ...) {
|
||||
va_list ap;
|
||||
va_start(ap, errstr);
|
||||
vfprintf(stderr, errstr, ap);
|
||||
va_end(ap);
|
||||
exit(1);
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue