home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / progrmng / stk110.lzh / STKSRC.COM / SPR_ERR.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-02-25  |  1.1 KB  |  34 lines

  1. /**********************************************************************
  2. * spr_err.c
  3. * Output fatal error message and exit
  4. **********************************************************************
  5.                     This file is part of
  6.  
  7.           STK -- The sprite toolkit -- version 1.1
  8.  
  9.               Copyright (C) Jari Karjala 1991
  10.  
  11. The sprite toolkit (STK) is a FreeWare toolkit for creating high
  12. resolution sprite graphics with PCompatible hardware. This toolkit 
  13. is provided as is without any warranty or such thing. See the file
  14. COPYING for further information.
  15.  
  16. **********************************************************************
  17. **********************************************************************/
  18.  
  19. #include <stdio.h>
  20. #include <stdlib.h>
  21. #include <graphics.h>
  22.  
  23. /**********************************************************************
  24. * Back to text mode, print the message and exit
  25. **********************************************************************/
  26. void spr_err(char *message)
  27. {
  28.     closegraph();
  29.     puts("Program terminated due to a fatal Sprite Toolkit error");
  30.     puts(message);
  31.     exit(255);
  32. }
  33.