home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / codelib6 / v_08_09 / 8n09018a < prev    next >
Encoding:
Text File  |  1995-11-01  |  285 b   |  17 lines

  1.  
  2. /* _Assert function
  3.  * copyright (c) 1990 by P.J. Plauger
  4.  */
  5. #include <assert.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8.  
  9. /* print assertion message and abort */
  10. void _Assert(char *mesg)
  11.     {
  12.     fputs(mesg, stderr);
  13.     fputs(" -- assertion failed\n", stderr);
  14.     abort();
  15.     }
  16.  
  17.