home *** CD-ROM | disk | FTP | other *** search
/ Vectronix 2 / VECTRONIX2.iso / FILES_01 / LATTIC_3.LZH / SRC / _XCOVF.C < prev    next >
C/C++ Source or Header  |  1990-05-03  |  342b  |  22 lines

  1. /*
  2.  * _xcovf.c - routine called when stack overflow occurs
  3.  *
  4.  * Started 20/9/89 Alex G. Kiernan
  5.  *
  6.  * Copyright (c) 1989 HiSoft
  7.  */
  8.  
  9. #include <dos.h>
  10. #include <stdlib.h>
  11.  
  12. __stdargs void _xcovf(void)
  13. {
  14.     char *s="Stack space exhausted\r\nProgram aborted\r\n";
  15.  
  16.     for (; *s; )
  17.         Bconout(2,*s++);
  18.  
  19.     _XCEXIT(EXIT_FAILURE);
  20. }
  21.  
  22.