home *** CD-ROM | disk | FTP | other *** search
- /**********************************************************************
- * spr_err.c
- *
- * Output fatal error message and exit
- **********************************************************************
- This file is part of
-
- STK -- The sprite toolkit -- version 1.1
-
- Copyright (C) Jari Karjala 1991
-
- The sprite toolkit (STK) is a FreeWare toolkit for creating high
- resolution sprite graphics with PCompatible hardware. This toolkit
- is provided as is without any warranty or such thing. See the file
- COPYING for further information.
-
- **********************************************************************
- **********************************************************************/
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <graphics.h>
-
- /**********************************************************************
- * Back to text mode, print the message and exit
- **********************************************************************/
- void spr_err(char *message)
- {
- closegraph();
- puts("Program terminated due to a fatal Sprite Toolkit error");
- puts(message);
- exit(255);
- }
-