Files
puzzles/gtk.c
Simon Tatham 96dbb537ee Initial checkin of a portable framework for writing small GUI puzzle
games.

[originally from svn r4138]
2004-04-25 14:27:58 +00:00

24 lines
338 B
C

/*
* gtk.c: GTK front end for my puzzle collection.
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "puzzles.h"
void fatal(char *fmt, ...)
{
va_list ap;
fprintf(stderr, "fatal error: ");
va_start(ap, fmt);
vfprintf(stderr, fmt, ap);
va_end(ap);
fprintf(stderr, "\n");
exit(1);
}