chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial checkin of a portable framework for writing small GUI puzzle
[sgt-puzzles.git]
/
gtk.c
1
/*
2
* gtk.c: GTK front end for my puzzle collection.
3
*/
4
5
#include <stdio.h>
6
#include <stdlib.h>
7
#include <stdarg.h>
8
9
#include "puzzles.h"
10
11
void fatal(char *fmt, ...)
12
{
13
va_list ap;
14
15
fprintf(stderr, "fatal error: ");
16
17
va_start(ap, fmt);
18
vfprintf(stderr, fmt, ap);
19
va_end(ap);
20
21
fprintf(stderr, "\n");
22
exit(1);
23
}