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

  1. /*
  2.  * _stub.c - routine called for undefined functions
  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 _stub(void)
  13. {
  14.     char *s="Call to undefined function\r\nProgram aborted\r\n";
  15.  
  16.     for (; *s; )
  17.         Bconout(2,*s++);
  18.  
  19.     _XCEXIT(EXIT_FAILURE);
  20. }
  21.